/*
 * jobs.css - job board layer for the Sigma theme (Phase 1)
 *
 * Loaded after style.css and responsive.css (see head.php), so it can be
 * removed to get the original Sigma look back. Everything is driven by the
 * tokens below: change them here to re-brand the whole site.
 *
 * Layout uses flex/grid and logical properties, so it follows the page
 * direction automatically (LTR and RTL).
 */

:root {
  --jb-ink: #17212b;
  --jb-muted: #5e6b78;
  --jb-faint: #8895a1;
  --jb-line: #dde3e8;
  --jb-line-strong: #b9c4cc;
  --jb-canvas: #f5f7f6;
  --jb-surface: #ffffff;
  --jb-accent: #0a6b5d;
  --jb-accent-dark: #07524a;
  --jb-accent-soft: #e3f1ee;
  --jb-featured-bg: #fffbef;
  --jb-featured-line: #efdda0;
  --jb-featured-ink: #6b4e00;
  --jb-radius: 8px;
  --jb-radius-lg: 12px;
  --jb-font: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base type and focus ---------- */

html,
body,
body input:not([type="hidden"]),
body select,
body textarea,
body button,
body header #logo,
body .bordered-box h2 {
  font-family: var(--jb-font);
}

body {
  color: var(--jb-ink);
  background: var(--jb-surface);
}

h1,
h2.h1 {
  font-family: var(--jb-font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--jb-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}

/* ---------- Header and navigation ---------- */

body header,
body.home header {
  background-color: var(--jb-surface);
  border-bottom: 1px solid var(--jb-line);
}

body header #logo a {
  color: var(--jb-ink);
  font-weight: 600;
}

body header .nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--jb-ink);
  border-radius: var(--jb-radius);
}

body header .nav a:hover {
  background: var(--jb-canvas);
  border-color: transparent;
}

body header .nav a.publish {
  background: var(--jb-accent);
  border-color: var(--jb-accent);
  color: #fff;
}

body header .nav a.publish:hover {
  background: var(--jb-accent-dark);
  border-color: var(--jb-accent-dark);
  box-shadow: none;
}

/* ---------- Buttons ---------- */

body .btn {
  border-radius: var(--jb-radius);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 18px;
  border-width: 1px;
}

body .btn.btn-primary {
  background: var(--jb-accent);
  border-color: var(--jb-accent);
  color: #fff;
}

body .btn.btn-primary:hover,
body a.btn.btn-primary:hover {
  background: var(--jb-accent-dark);
  border-color: var(--jb-accent-dark);
}

body .btn.btn-secondary {
  background: var(--jb-surface);
  border: 1px solid var(--jb-line-strong);
  color: var(--jb-ink);
}

body .btn.btn-secondary:hover,
body a.btn.btn-secondary:hover {
  border-color: var(--jb-accent);
  color: var(--jb-accent);
}

/* ---------- Form fields ---------- */

body input[type="text"],
body input[type="url"],
body input[type="password"],
body input[type="email"],
body input[type="date"],
body input[type="tel"],
body input[type="phone"],
body input[type="number"],
body select,
body textarea {
  border: 1px solid var(--jb-line-strong);
  border-radius: var(--jb-radius);
  color: var(--jb-ink);
}

body input[type="text"],
body input[type="url"],
body input[type="password"],
body input[type="email"],
body input[type="date"],
body input[type="tel"],
body input[type="phone"],
body input[type="number"],
body select {
  height: 46px;
}

body input[type="text"]:focus,
body input[type="url"]:focus,
body input[type="password"]:focus,
body input[type="email"]:focus,
body input[type="tel"]:focus,
body input[type="number"]:focus,
body select:focus,
body textarea:focus {
  outline: none;
  border-color: var(--jb-accent);
  box-shadow: 0 0 0 3px var(--jb-accent-soft);
}

/* ---------- Homepage hero ---------- */

body.home section.home-search,
body.home section.header-ad {
  background-color: var(--jb-canvas);
}

body.home section.home-search {
  border-bottom: 1px solid var(--jb-line);
}

.job-hero form.search h1 {
  text-align: start;
  margin: 44px 0 8px 0;
  font-size: 38px;
  line-height: 44px;
}

.job-hero .hero-sub {
  margin: 0 0 24px 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--jb-muted);
}

.job-hero .main-search {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  float: none;
  margin: 0 0 44px 0;
  padding: 6px;
  background: var(--jb-surface);
  border: 1px solid var(--jb-line-strong);
  border-radius: var(--jb-radius-lg);
}

.job-hero .main-search:focus-within {
  border-color: var(--jb-accent);
  box-shadow: 0 0 0 3px var(--jb-accent-soft);
}

.job-hero .main-search > .cell,
.job-hero .main-search > .cell.c2,
.job-hero .main-search > .cell.c3 {
  display: block;
  float: none;
  width: auto;
  padding: 8px 16px;
  border-inline-end: 1px solid var(--jb-line);
}

.job-hero .main-search > .cell.c3 {
  padding: 0 0 0 6px;
  border: 0;
}

.job-hero .main-search label {
  display: block;
  margin: 0 0 2px 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--jb-muted);
}

.job-hero .main-search .cell input[type="text"],
.job-hero .main-search .cell select {
  float: none;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
}

.job-hero .main-search .cell input[type="text"]:focus,
.job-hero .main-search .cell select:focus {
  box-shadow: none;
}

.job-hero .main-search .cell.c3 button {
  float: none;
  height: 100%;
  min-height: 52px;
  padding: 0 26px;
}

.job-hero .main-search .cell.c3 button i {
  margin-inline-end: 6px;
}

/* ---------- Homepage sections ---------- */

.home-latest h2,
#home-cats h2,
#home-regs h2 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
}

.home-latest {
  margin-top: 32px;
}

#home-cats {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

#home-cats .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

#home-cats a {
  float: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 14px 16px;
  text-align: start;
  background: var(--jb-surface);
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius-lg);
  text-decoration: none;
  transition: border-color 0.15s;
}

#home-cats a:hover {
  border-color: var(--jb-accent);
}

#home-cats a .icon {
  width: 40px;
  margin: 0;
  flex: 0 0 40px;
  text-align: center;
}

#home-cats a .icon i {
  font-size: 22px;
  line-height: 40px;
}

#home-cats a strong {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-height: none;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--jb-ink);
}

#home-cats a .cat-count {
  flex: 0 0 100%;
  padding-inline-start: 52px;
  margin-top: -2px;
  font-size: 13px;
  line-height: 18px;
  color: var(--jb-muted);
}

#home-regs a {
  color: var(--jb-ink);
}

#home-regs a em {
  color: var(--jb-muted);
}

/* ---------- Job cards ----------
 * The doubled .job-card is intentional: style.css has high-specificity rules
 * for list and grid cards (including :last-child borders) that this card
 * must win against, in every view (home, search, related jobs, dashboard).
 */

body ul.listing-card-list.listing-grid,
body.search ul.listing-card-list.listing-grid {
  width: 100%;
  margin-inline: 0;
}

body .listing-card-list li.listing-card.job-card.job-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  float: none;
  clear: both;
  width: 100%;
  margin: 0 0 12px 0;
  padding: 18px 20px;
  background: var(--jb-surface);
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius-lg);
  transition: border-color 0.15s;
}

body .listing-card-list li.listing-card.job-card.job-card:hover {
  border-color: var(--jb-line-strong);
}

body .listing-card-list li.listing-card.job-card.job-card.premium {
  background: var(--jb-featured-bg);
  border-color: var(--jb-featured-line);
}

.job-card .job-logo {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--jb-line);
  background: hsl(var(--h, 170) 40% 93%);
  text-decoration: none;
}

.job-card .job-logo.has-logo {
  background: #fff;
}

.job-card .job-logo img {
  width: 100%;
  height: 100%;
  float: none;
  object-fit: contain;
  border-radius: 0;
}

.job-card .job-initials {
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  color: hsl(var(--h, 170) 45% 26%);
}

.job-card .job-body {
  flex: 1 1 0;
  min-width: 0;
}

.job-card .job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.job-card .job-title {
  margin: 0;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: var(--jb-ink);
  text-decoration: none;
}

.job-card .job-title:hover {
  color: var(--jb-accent);
  text-decoration: underline;
}

.job-card .job-tag {
  padding: 1px 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  border-radius: 999px;
}

.job-card .job-tag-new {
  background: var(--jb-accent-soft);
  color: var(--jb-accent);
}

.job-card .job-tag-featured {
  background: #ffefc2;
  color: var(--jb-featured-ink);
}

.job-card .job-company {
  margin-top: 1px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--jb-ink);
}

.job-card .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--jb-muted);
}

.job-card .job-meta i {
  margin-inline-end: 5px;
  color: var(--jb-faint);
}

.job-card .job-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 8px;
  font-size: 14px;
  line-height: 21px;
  color: #3c4853;
}

.job-card .job-side {
  flex: 0 0 auto;
  min-width: 110px;
  text-align: end;
}

.job-card .job-salary {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--jb-ink);
}

.job-card .job-posted {
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  color: var(--jb-muted);
}

.job-card .admin-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  margin-top: 12px;
}

.job-card .admin-options a {
  float: none;
  margin: 0;
}

.job-card .fi_make_favorite.fi_make {
  top: auto;
  bottom: 14px;
  inset-inline-end: 16px;
}

/* ---------- Search results and filters ---------- */

body.search h1 {
  font-size: 28px;
  line-height: 34px;
}

body.search #main h2 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin: 16px 0 12px 0;
}

#sidebar .filters {
  background: var(--jb-canvas);
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius-lg);
  padding: 16px 14px;
}

.paginate a,
.paginate span {
  border: 1px solid var(--jb-line-strong);
  border-radius: var(--jb-radius);
  color: var(--jb-ink);
}

.paginate a:hover {
  border-color: var(--jb-accent);
}

.paginate span.searchPaginationSelected {
  background: var(--jb-accent);
  border-color: var(--jb-accent);
  color: #fff;
}

#related-searches a {
  border-color: var(--jb-line-strong);
  border-radius: 999px;
  color: var(--jb-ink);
}

#related-searches a:hover {
  border-color: var(--jb-accent);
  color: var(--jb-accent);
}

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

footer {
  background: var(--jb-canvas);
  border-top: 1px solid var(--jb-line);
}

/* ---------- Small screens ---------- */

@media screen and (max-width: 767px) {
  .job-hero form.search h1 {
    margin-top: 28px;
    font-size: 28px;
    line-height: 34px;
  }

  .job-hero .main-search {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  .job-hero .main-search > .cell,
  .job-hero .main-search > .cell.c2 {
    border-inline-end: 0;
    border-bottom: 1px solid var(--jb-line);
  }

  .job-hero .main-search > .cell.c3 {
    padding: 6px 0 0 0;
    border-bottom: 0;
  }

  .job-hero .main-search .cell.c3 button {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  body .listing-card-list li.listing-card.job-card.job-card {
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
  }

  .job-card .job-body {
    flex-basis: calc(100% - 68px);
  }

  .job-card .job-side {
    flex: 0 0 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid var(--jb-line);
    text-align: start;
  }

  .job-card .fi_make_favorite.fi_make {
    top: 14px;
    bottom: auto;
  }
}

/* =====================================================================
 * Phase 2: job fields, job page, apply card, post form, search filters
 * ===================================================================== */

/* ---------- Badges (cards and job page) ---------- */

.job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.job-badge {
  padding: 2px 10px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--jb-ink);
  background: var(--jb-canvas);
  border: 1px solid var(--jb-line);
  border-radius: 999px;
}

.job-badge-remote,
.job-badge-hybrid {
  color: var(--jb-accent);
  background: var(--jb-accent-soft);
  border-color: transparent;
}

.job-badge-closed {
  color: #9b1c1c;
  background: #fdecec;
  border-color: #f3c5c5;
}

body .listing-card-list li.listing-card.job-card.job-card.job-closed {
  opacity: 0.72;
}

/* ---------- Job page ---------- */

body #item-content.job-detail h1 {
  margin: 0 0 4px 0;
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
}

.job-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0 0 18px 0;
}

.job-top .job-logo,
.company-card .job-logo {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--jb-line);
  background: hsl(var(--h, 170) 40% 93%);
}

.job-top .job-logo.job-logo-lg {
  flex-basis: 72px;
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.job-top .job-logo.has-logo,
.company-card .job-logo.has-logo {
  background: #fff;
}

.job-top .job-logo img,
.company-card .job-logo img {
  width: 100%;
  height: 100%;
  float: none;
  object-fit: contain;
}

.job-top .job-initials,
.company-card .job-initials {
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  color: hsl(var(--h, 170) 45% 26%);
}

.job-top .job-logo-lg .job-initials {
  font-size: 26px;
}

.job-top-text {
  flex: 1 1 0;
  min-width: 0;
}

.job-top-company {
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
}

.job-top-company a {
  color: var(--jb-accent);
  text-decoration: none;
}

.job-top-company a:hover {
  text-decoration: underline;
}

.job-top .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--jb-muted);
}

.job-top .job-meta i {
  margin-inline-end: 5px;
  color: var(--jb-faint);
}

body .job-detail .job-actions {
  display: flex;
  flex-wrap: wrap;
  float: left;
  clear: both;
  width: 100%;
  gap: 10px;
  margin: 0 0 24px 0;
}

body .job-detail .job-actions .btn,
body .job-detail .job-actions-bottom .btn {
  float: none;
  margin: 0;
}

.job-apply-closed {
  cursor: not-allowed;
  color: var(--jb-muted);
}

.job-detail.is-closed .job-top .job-logo {
  filter: grayscale(1);
  opacity: 0.7;
}

.job-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 10px;
  float: left;
  clear: both;
  width: 100%;
  margin: 0 0 28px 0;
}

.job-fact {
  padding: 10px 14px;
  background: var(--jb-surface);
  border: 1px solid var(--jb-line);
  border-radius: 10px;
}

.job-fact dt {
  margin: 0 0 2px 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--jb-muted);
}

.job-fact dd {
  margin: 0;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  color: var(--jb-ink);
}

.job-fact-salary dd {
  color: var(--jb-accent);
}

#description .job-section-title {
  clear: both;
  float: left;
  width: 100%;
  margin: 28px 0 10px 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

#description > .job-section-title:first-child {
  margin-top: 0;
}

#description .job-tags {
  display: flex;
  flex-wrap: wrap;
  float: left;
  clear: both;
  gap: 8px;
  margin: 0 0 8px 0;
  padding: 0;
  list-style: none;
}

#description .job-tags li {
  padding: 4px 12px;
  font-size: 14px;
  line-height: 20px;
  background: var(--jb-canvas);
  border: 1px solid var(--jb-line);
  border-radius: 999px;
}

#description .job-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
  float: left;
  clear: both;
  margin: 0 0 8px 0;
  padding: 0;
  list-style: none;
}

#description .job-benefits li {
  font-size: 15px;
  line-height: 22px;
}

#description .job-benefits i {
  margin-inline-end: 8px;
  color: var(--jb-accent);
}

#description .job-gallery {
  display: flex;
  flex-wrap: wrap;
  float: left;
  clear: both;
  gap: 10px;
  margin: 0 0 20px 0;
}

#description .job-gallery img {
  display: block;
  height: 90px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--jb-line);
}

body #description .job-actions-bottom {
  margin-top: 24px;
}

/* ---------- Apply card and company card ---------- */

.job-sidebar .widget-box {
  padding: 18px;
  background: var(--jb-surface);
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius-lg);
}

.job-sidebar .widget-box h2 {
  margin: 0 0 12px 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.job-apply .apply-salary {
  margin: 0 0 6px 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--jb-ink);
}

.job-apply .apply-deadline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--jb-muted);
}

.job-apply .apply-deadline span {
  font-weight: 600;
}

.job-apply .apply-deadline.is-urgent {
  color: #9a5b00;
}

.job-apply .apply-deadline.is-closed {
  color: #9b1c1c;
}

.job-apply .apply-direct .btn {
  float: none;
  width: 100%;
  text-align: center;
}

#contact.job-apply p.problem {
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 20px;
  color: #8a1f1f;
  background: #fdf3f2;
  border-radius: var(--jb-radius);
}

#contact.job-apply #contact_form {
  margin-top: 8px;
}

.company-card .company-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px 0;
}

.company-card .company-name {
  display: block;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.company-card .company-site,
.company-card .company-jobs a {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--jb-accent);
  text-decoration: none;
}

.company-card .company-site:hover,
.company-card .company-jobs a:hover {
  text-decoration: underline;
}

.company-card p {
  margin: 0 0 6px 0;
  font-size: 14px;
  line-height: 20px;
}

.job-sidebar #useful_info {
  background: var(--jb-canvas);
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius-lg);
}

/* ---------- Post / edit form ---------- */

.jf-field .controls input[type="text"],
.jf-field .controls input[type="url"],
.jf-field .controls input[type="email"],
.jf-field .controls input[type="number"],
.jf-field .controls input[type="date"],
.jf-field .controls select {
  float: none;
  width: 100%;
  max-width: 520px;
  margin: 0;
  min-width: 0;
}

.jf-field .jf-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 520px;
}

.jf-field .jf-pair input,
.jf-field .jf-pair select {
  flex: 1 1 0;
  width: auto;
}

.jf-field .jf-dash {
  color: var(--jb-muted);
}

.jf-help {
  display: block;
  clear: both;
  margin-top: 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--jb-muted);
}

.jf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
}

.jf-check input {
  width: auto;
  height: auto;
  margin: 0;
}

.jf-logo-help {
  float: left;
  clear: both;
  width: 100%;
  margin: -4px 0 16px 0;
  padding-inline-start: 30%;
}

.jf-all h3 {
  clear: both;
  margin: 20px 0 10px 0;
}

/* ---------- Search filters and chips ---------- */

.job-filter h3 {
  margin: 0 0 6px 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

#sidebar .filters .job-filter .row.job-filter-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-filter-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: normal;
  cursor: pointer;
}

.job-filter-options input {
  width: auto;
  height: auto;
  margin: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 12px 0 4px 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 18px;
  color: var(--jb-ink);
  text-decoration: none;
  background: var(--jb-surface);
  border: 1px solid var(--jb-line-strong);
  border-radius: 999px;
}

.filter-chip:hover {
  border-color: var(--jb-accent);
}

.filter-chip i {
  font-size: 11px;
  color: var(--jb-muted);
}

.filter-chip-clear {
  font-size: 13px;
  font-weight: 500;
  color: var(--jb-accent);
}

/* ---------- Small screens ---------- */

@media screen and (max-width: 767px) {
  .jf-logo-help {
    padding-inline-start: 0;
  }
}

@media screen and (max-width: 600px) {
  .job-top {
    gap: 14px;
  }

  .job-top .job-logo.job-logo-lg {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  body #item-content.job-detail h1 {
    font-size: 24px;
    line-height: 30px;
  }

  .job-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================================
 * Phase 3: employer dashboard, applicants, candidate area, company page
 * ===================================================================== */

/* ---------- Tabs above the "My jobs" views ---------- */

.jobs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  margin: 0 0 20px 0;
  border-bottom: 1px solid var(--jb-line);
}

.jobs-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: -1px;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--jb-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.jobs-tabs a:hover {
  color: var(--jb-ink);
}

.jobs-tabs a.active {
  color: var(--jb-accent);
  border-bottom-color: var(--jb-accent);
}

.jobs-tab-count,
.job-new-count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: var(--jb-accent);
  border-radius: 999px;
}

/* ---------- Employer controls on a job card ---------- */

.job-card .job-owner-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 12px;
  padding-top: 10px;
  font-size: 13px;
  line-height: 20px;
  color: var(--jb-muted);
  border-top: 1px solid var(--jb-line);
}

.job-card .job-owner-stats a {
  font-weight: 500;
  color: var(--jb-accent);
  text-decoration: none;
}

.job-card .job-owner-stats i {
  margin-inline-end: 4px;
}

.job-card .job-owner-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.job-card .job-owner-form .btn {
  padding: 6px 12px;
  font-size: 13px;
}

.job-card .job-owner-form input[type="date"] {
  height: 34px;
  width: auto;
  margin: 0;
  float: none;
  font-size: 13px;
}

/* ---------- Applications received / My applications ---------- */

.jobs-view h1 {
  margin: 0 0 16px 0;
  font-size: 26px;
  line-height: 32px;
}

.jobs-view .empty {
  padding: 24px;
  color: var(--jb-muted);
  background: var(--jb-canvas);
  border: 1px dashed var(--jb-line-strong);
  border-radius: var(--jb-radius-lg);
}

.applicants-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 16px 0;
}

.applicants-filter label {
  font-size: 14px;
  color: var(--jb-muted);
}

.applicants-filter select {
  width: auto;
  height: 38px;
  margin: 0;
  float: none;
}

.applicants-filter .btn {
  padding: 8px 14px;
}

.applicants-all {
  font-size: 14px;
  color: var(--jb-accent);
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.app-card {
  padding: 16px 18px;
  background: var(--jb-surface);
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius-lg);
}

.app-card.app-new {
  border-inline-start: 4px solid var(--jb-accent);
}

.app-card.app-rejected {
  opacity: 0.75;
}

.app-head {
  margin-bottom: 10px;
}

.app-head > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.app-name {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: var(--jb-ink);
  text-decoration: none;
}

a.app-name:hover {
  color: var(--jb-accent);
  text-decoration: underline;
}

.app-card.app-shortlisted .app-status-badge,
.app-card.app-hired .app-status-badge {
  color: var(--jb-accent);
  background: var(--jb-accent-soft);
  border-color: transparent;
}

.app-card.app-rejected .app-status-badge {
  color: #9b1c1c;
  background: #fdecec;
  border-color: #f3c5c5;
}

.app-meta {
  margin-top: 2px;
  font-size: 13px;
  line-height: 20px;
  color: var(--jb-muted);
}

.app-meta a {
  color: var(--jb-accent);
}

.app-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 14px;
  line-height: 20px;
}

.app-contact i {
  margin-inline-end: 5px;
  color: var(--jb-faint);
}

.app-contact .app-cv {
  padding: 6px 12px;
  font-size: 13px;
}

.app-no-cv {
  color: var(--jb-faint);
}

.app-message {
  margin-top: 12px;
}

.app-message summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--jb-accent);
}

.app-message p {
  margin: 8px 0 0 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 21px;
  background: var(--jb-canvas);
  border-radius: var(--jb-radius);
}

.app-status-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--jb-line);
}

.app-status-form label {
  font-size: 14px;
  color: var(--jb-muted);
}

.app-status-form select {
  width: auto;
  min-width: 140px;
  height: 38px;
  margin: 0;
  float: none;
}

.app-status-form .btn {
  padding: 8px 16px;
}

/* ---------- "You applied" note on the job page ---------- */

#contact.job-apply p.apply-done {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--jb-accent-dark);
  background: var(--jb-accent-soft);
  border-radius: var(--jb-radius);
}

.apply-done i {
  margin-inline-end: 4px;
}

.apply-done a {
  font-weight: 600;
  color: inherit;
}

/* ---------- Company page (public employer profile) ---------- */

body.user-public .user-card,
body .user-card {
  background: var(--jb-surface);
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius-lg);
}

.user-card .open-jobs strong {
  color: var(--jb-ink);
}

.user-card .website a {
  color: var(--jb-accent);
}

@media screen and (max-width: 600px) {
  .app-card {
    padding: 14px;
  }

  .app-status-form select,
  .applicants-filter select {
    flex: 1 1 140px;
  }
}

/* =====================================================================
 * Phase 4: job alert box, applicant notes, paging
 * ===================================================================== */

.job-alert {
  margin: 20px 0 0 0;
  padding: 16px;
  background: var(--jb-canvas);
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius-lg);
}

.job-alert h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.job-alert .job-alert-summary {
  margin: 0 0 12px 0;
  font-size: 13px;
  line-height: 19px;
  color: var(--jb-ink);
  font-weight: 500;
}

.job-alert label {
  display: block;
  margin: 0 0 4px 0;
  font-size: 13px;
  color: var(--jb-muted);
}

.job-alert input[type="email"] {
  float: none;
  width: 100%;
  height: 40px;
  margin: 0 0 10px 0;
  padding: 0 12px;
  border: 1px solid var(--jb-line-strong);
  border-radius: var(--jb-radius);
}

.job-alert .btn {
  width: 100%;
  text-align: center;
}

.job-alert .job-alert-note {
  margin: 10px 0 0 0;
  font-size: 12px;
  line-height: 17px;
  color: var(--jb-muted);
}

.app-status-form .app-note {
  flex: 1 1 100%;
  float: none;
  width: 100%;
  height: 38px;
  margin: 4px 0 0 0;
}

.app-status-form .app-notify {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--jb-muted);
}

.app-status-form .app-notify input {
  width: auto;
  height: auto;
  margin: 0;
}

.app-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin: 20px 0 0 0;
}

.app-pages a {
  display: inline-block;
  min-width: 36px;
  padding: 7px 10px;
  font-size: 14px;
  text-align: center;
  color: var(--jb-ink);
  text-decoration: none;
  border: 1px solid var(--jb-line-strong);
  border-radius: var(--jb-radius);
}

.app-pages a:hover {
  border-color: var(--jb-accent);
}

.app-pages a.active {
  color: #fff;
  background: var(--jb-accent);
  border-color: var(--jb-accent);
}

/* "Apply now" highlight on the Apply card */

#contact.job-apply {
  transition: box-shadow 0.2s, border-color 0.2s;
}

#contact.job-apply.apply-flash {
  border-color: var(--jb-accent);
  box-shadow: 0 0 0 4px var(--jb-accent-soft);
}

/* Apply card inside the job's main column */

.job-detail #contact.job-apply {
  float: left;
  clear: both;
  width: 100%;
  margin: 28px 0 8px 0;
  padding: 20px;
  background: var(--jb-surface);
  border: 1px solid var(--jb-line);
  border-radius: var(--jb-radius-lg);
}

.job-detail #contact.job-apply h2 {
  margin: 0 0 12px 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.job-detail #contact.job-apply .control-group {
  margin: 0 0 12px 0;
}

.job-detail #contact.job-apply label {
  display: block;
  margin: 0 0 4px 0;
  font-size: 14px;
}

.job-detail #contact.job-apply input[type="text"],
.job-detail #contact.job-apply input[type="email"],
.job-detail #contact.job-apply input[type="tel"],
.job-detail #contact.job-apply input[type="file"],
.job-detail #contact.job-apply textarea {
  float: none;
  width: 100%;
  max-width: 560px;
  margin: 0;
}

.job-detail #contact.job-apply p {
  margin: 0 0 8px 0;
}
