/* InfoparkDaily jobs marketplace — Entri-inspired listing layout */
.jobs-marketplace {
  --ej-blue: #1d4ed8;
  --ej-blue-soft: #dbeafe;
  --ej-blue-mid: #2563eb;
  --ej-ink: #0f172a;
  --ej-muted: #64748b;
  --ej-line: #e2e8f0;
  --ej-bg: #f8fafc;
  --ej-card: #ffffff;
  --ej-radius: 16px;
  --ej-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html.theme-dark body.jobs-marketplace,
body.jobs-marketplace.dark {
  --ej-blue-soft: rgba(37, 99, 235, 0.22);
  --ej-ink: #f8fafc;
  --ej-muted: #94a3b8;
  --ej-line: rgba(148, 163, 184, 0.22);
  --ej-bg: #0b1220;
  --ej-card: rgba(15, 23, 42, 0.72);
  --ej-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

html.theme-light body.jobs-marketplace,
body.jobs-marketplace.light,
html.theme-light body.jobs-marketplace .jobs-page {
  background: #ffffff;
  color: var(--ej-ink);
}

html.theme-dark body.jobs-marketplace,
body.jobs-marketplace.dark,
html.theme-dark body.jobs-marketplace .jobs-page {
  background: var(--ej-bg);
  color: var(--ej-ink);
}

body.jobs-marketplace .jobs-page {
  padding-bottom: 7.5rem;
}

body.jobs-marketplace .jobs-hero,
body.jobs-marketplace .jobs-hero-glow,
body.jobs-marketplace .jobs-hero-visual,
body.jobs-marketplace .jobs-hero-lottie {
  display: none;
}

/* Hero */
.ej-hero {
  position: relative;
  margin-top: 0.85rem;
  margin-bottom: 1rem;
  padding: clamp(1.15rem, 3vw, 1.85rem) 0 clamp(1.2rem, 3vw, 1.65rem);
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

html.theme-dark body.jobs-marketplace .ej-hero,
body.jobs-marketplace.dark .ej-hero {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(15, 18, 28, 0.96), rgba(11, 14, 22, 0.98));
}

.ej-hero-inner {
  max-width: 42rem;
}

.ej-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ej-ink);
}

html.theme-dark body.jobs-marketplace .ej-hero h1,
body.jobs-marketplace.dark .ej-hero h1 {
  color: var(--text);
}

.ej-hero-lead {
  margin: 0.7rem 0 0;
  color: var(--ej-muted);
  font-size: 1.02rem;
}

.ej-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.7fr) auto;
  gap: 0;
  align-items: stretch;
  margin-top: 1.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ej-line);
  box-shadow: var(--ej-shadow);
}

html.theme-dark body.jobs-marketplace .ej-search-bar,
body.jobs-marketplace.dark .ej-search-bar {
  background: var(--surface);
  border-color: var(--line);
}

.ej-search-bar .jobs-search-label,
.ej-search-bar .jobs-select-label {
  margin: 0;
  display: flex;
  align-items: center;
  min-width: 0;
}

.ej-search-bar .jobs-search-label {
  padding: 0 0.4rem 0 0.85rem;
}

.ej-search-bar .jobs-search-icon {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  color: var(--ej-muted);
}

.ej-search-bar .jobs-search,
.ej-search-bar .jobs-sort {
  border: 0;
  background-color: transparent;
  box-shadow: none;
  width: 100%;
  min-height: 48px;
  font-size: 0.95rem;
}

/* One chevron only — never tile (background shorthand was wiping no-repeat) */
.ej-search-bar .jobs-sort {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6L8 10.5 12.5 6' stroke='%235c5f6e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 16px 16px;
}

html.theme-dark body.jobs-marketplace .ej-search-bar .jobs-sort,
body.jobs-marketplace.dark .ej-search-bar .jobs-sort {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6L8 10.5 12.5 6' stroke='%23a4a8ba' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 16px 16px;
}

.ej-search-bar .jobs-sort::-ms-expand {
  display: none;
}

.ej-search-bar .jobs-select-caption {
  display: none;
}

.ej-search-bar .jobs-select-label {
  border-left: 1px solid var(--ej-line);
  padding: 0 0.4rem;
}

.ej-search-submit {
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 1.25rem;
  background: var(--ej-blue-mid);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.ej-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.ej-hero-stats li,
.ej-hero-stats a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--ej-blue);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
}

.ej-hero-stats strong {
  font-family: var(--display);
  font-size: 0.95rem;
}

.ej-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.ej-hero-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ej-blue);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ej-line);
}

html.theme-dark body.jobs-marketplace .ej-hero-links a,
body.jobs-marketplace.dark .ej-hero-links a {
  background: var(--surface);
  border-color: var(--line);
  color: var(--accent);
}

/* Sections */
.ej-section {
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
}

.ej-section h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  letter-spacing: -0.02em;
}

.ej-how {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.ej-how-card {
  padding: 1.15rem 1.05rem 1.2rem;
  border-radius: 20px;
  min-height: 8.5rem;
}

.ej-how-card span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.ej-how-card strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.3;
}

.ej-how-card p {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  opacity: 0.85;
}

.ej-how-card--1 { background: #eee8ff; color: #4c1d95; }
.ej-how-card--2 { background: #fef3c7; color: #92400e; }
.ej-how-card--3 { background: #d1fae5; color: #065f46; }
.ej-how-card--4 { background: #ffedd5; color: #9a3412; }

html.theme-dark body.jobs-marketplace .ej-how-card--1,
body.jobs-marketplace.dark .ej-how-card--1 { background: rgba(124, 58, 237, 0.22); color: #ddd6fe; }
html.theme-dark body.jobs-marketplace .ej-how-card--2,
body.jobs-marketplace.dark .ej-how-card--2 { background: rgba(234, 179, 8, 0.18); color: #fde68a; }
html.theme-dark body.jobs-marketplace .ej-how-card--3,
body.jobs-marketplace.dark .ej-how-card--3 { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
html.theme-dark body.jobs-marketplace .ej-how-card--4,
body.jobs-marketplace.dark .ej-how-card--4 { background: rgba(249, 115, 22, 0.18); color: #fdba74; }

.ej-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.ej-cat {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 1.15rem 0.7rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--ej-line);
  background: var(--ej-card);
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow: var(--ej-shadow);
  cursor: pointer;
}

.ej-cat:hover,
.ej-cat.is-active {
  border-color: #7c3aed;
}

.ej-cat-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--ej-blue-soft);
  font-size: 1.15rem;
}

.ej-cat strong {
  font-size: 0.92rem;
}

.ej-cat span {
  color: var(--ej-muted);
  font-size: 0.78rem;
}

.ej-locs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.ej-loc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--ej-line);
  background: var(--ej-card);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.ej-loc:hover,
.ej-loc.is-active {
  border-color: var(--ej-blue-mid);
}

.ej-loc-pin {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--ej-blue-soft);
  color: var(--ej-blue);
  font-size: 0.9rem;
}

.ej-loc strong {
  display: block;
  font-size: 0.9rem;
}

.ej-loc span span {
  display: block;
  color: var(--ej-muted);
  font-size: 0.75rem;
}

.ej-loc span {
  color: var(--ej-muted);
  font-size: 0.75rem;
}

.ej-loc-chevron {
  color: #94a3b8;
}

.ej-hire {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 1.35rem;
  align-items: stretch;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--ej-line);
  box-shadow: var(--ej-shadow);
}

html.theme-dark body.jobs-marketplace .ej-hire,
body.jobs-marketplace.dark .ej-hire {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}

.ej-hire-copy,
.ej-hire-panel,
.ej-hire-lead,
.ej-hire-list li,
.ej-hire h2,
.ej-hire p {
  background: transparent !important;
  box-shadow: none;
}

.ej-hire-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--ej-blue-mid);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ej-hire h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--ej-ink);
}

html.theme-dark body.jobs-marketplace .ej-hire h2,
body.jobs-marketplace.dark .ej-hire h2 {
  color: var(--text);
}

.ej-hire-lead {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  color: var(--ej-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.ej-hire-list {
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.ej-hire-list li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1.75rem;
  color: var(--ej-ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

html.theme-dark body.jobs-marketplace .ej-hire-list li,
body.jobs-marketplace.dark .ej-hire-list li {
  color: var(--text);
}

.ej-hire-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--ej-blue-soft);
  color: var(--ej-blue-mid);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.ej-hire-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.ej-hire-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.3rem;
  border-radius: 999px;
  background: var(--ej-blue-mid) !important;
  color: #fff !important;
  border: 0 !important;
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.ej-hire-secondary {
  color: var(--ej-blue-mid);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.ej-hire-secondary:hover {
  text-decoration: underline;
}

.ej-hire-panel {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1.15rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
}

html.theme-dark body.jobs-marketplace .ej-hire-panel,
body.jobs-marketplace.dark .ej-hire-panel {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(147, 197, 253, 0.28);
}

.ej-hire-panel-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ej-blue-mid);
}

.ej-hire-panel-stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.ej-hire-panel-stats li {
  display: grid;
  gap: 0.12rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(191, 219, 254, 0.9);
}

html.theme-dark body.jobs-marketplace .ej-hire-panel-stats li,
body.jobs-marketplace.dark .ej-hire-panel-stats li {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.22);
}

.ej-hire-panel-stats strong {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ej-ink);
  letter-spacing: -0.02em;
}

html.theme-dark body.jobs-marketplace .ej-hire-panel-stats strong,
body.jobs-marketplace.dark .ej-hire-panel-stats strong {
  color: var(--text);
}

.ej-hire-panel-stats span {
  color: var(--ej-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

/* legacy visual (removed from markup) */
.ej-hire-visual {
  display: none;
}

.ej-hire .btn {
  text-decoration: none;
}

/* Board */
.ej-board {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  margin-top: 0.75rem;
  scroll-margin-top: 5.5rem;
}

.ej-section--secondary {
  margin-top: 2rem;
}

.ej-filters {
  position: sticky;
  top: 5.4rem;
  padding: 1.05rem 1rem 1.15rem;
  border-radius: var(--ej-radius);
  border: 1px solid var(--ej-line);
  background: var(--ej-card);
  box-shadow: var(--ej-shadow);
}

html.theme-dark body.jobs-marketplace .ej-filters,
body.jobs-marketplace.dark .ej-filters {
  background: var(--surface);
  border-color: var(--line);
}

.ej-filters-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.ej-filters-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ej-blue);
}

.ej-filters-head button {
  border: 0;
  background: none;
  color: var(--ej-muted);
  font-weight: 650;
  cursor: pointer;
  padding: 0;
}

.ej-filter-meta {
  margin: 0.25rem 0 0.85rem;
  color: var(--ej-muted);
  font-size: 0.78rem;
}

body.jobs-marketplace .jobs-toolbar {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

body.jobs-marketplace .jobs-toolbar-row.jobs-toolbar-row--top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

body.jobs-marketplace .jobs-search-label {
  display: none;
}

body.jobs-marketplace .ej-search-bar .jobs-search-label {
  display: flex;
}

body.jobs-marketplace .jobs-filter-caption {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--ej-ink);
}

html.theme-dark body.jobs-marketplace .jobs-filter-caption,
body.jobs-marketplace.dark .jobs-filter-caption {
  color: var(--text);
}

body.jobs-marketplace .jobs-filters,
body.jobs-marketplace .jobs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.jobs-marketplace .jobs-filter-btn,
body.jobs-marketplace .jobs-tag-chip {
  border-radius: 999px;
  border: 1px solid var(--ej-line);
  background: #f1f5f9;
  color: #334155;
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 650;
}

body.jobs-marketplace .jobs-filter-btn.is-active,
body.jobs-marketplace .jobs-tag-chip.is-active {
  background: var(--ej-blue-soft);
  border-color: #93c5fd;
  color: var(--ej-blue);
}

body.jobs-marketplace .jobs-count {
  font-size: 0.82rem;
  color: var(--ej-muted);
}

/* Job cards — keep full detail cards (do not strip fields) */
body.jobs-marketplace .jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 1200px) {
  body.jobs-marketplace .jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.jobs-marketplace .job-card {
  height: 100%;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--ej-line);
  background: var(--ej-card);
  box-shadow: none;
}

html.theme-dark body.jobs-marketplace .job-card,
body.jobs-marketplace.dark .job-card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}

body.jobs-marketplace .job-card:hover {
  border-color: #cbd5e1;
  transform: none;
}

body.jobs-marketplace .job-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
}

body.jobs-marketplace .job-card-meta h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

body.jobs-marketplace .job-card-meta h3 a {
  color: inherit;
  text-decoration: none;
}

body.jobs-marketplace .job-location {
  margin: 0.2rem 0 0;
  color: var(--ej-muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

body.jobs-marketplace .job-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

body.jobs-marketplace .ej-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

body.jobs-marketplace .ej-status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
}

body.jobs-marketplace .ej-status--live {
  background: #dcfce7;
  color: #15803d;
}

body.jobs-marketplace .ej-status--live::before {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: ej-live-pulse 1.6s ease-out infinite;
}

body.jobs-marketplace .ej-status--closing {
  background: #fef3c7;
  color: #b45309;
}

body.jobs-marketplace .ej-status--expired {
  background: #f1f5f9;
  color: #64748b;
}

html.theme-dark body.jobs-marketplace .ej-status--live {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

html.theme-dark body.jobs-marketplace .ej-status--closing {
  background: rgba(234, 179, 8, 0.18);
  color: #fde68a;
}

html.theme-dark body.jobs-marketplace .ej-status--expired {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

@keyframes ej-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

body.jobs-marketplace .job-fact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

body.jobs-marketplace .job-card-body {
  display: grid;
  gap: 0.35rem;
}

body.jobs-marketplace .job-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ej-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

body.jobs-marketplace .job-card-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ej-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body.jobs-marketplace .job-meta-row {
  min-width: 0;
  color: var(--ej-muted);
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.jobs-marketplace .job-details-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 7.5rem;
  justify-content: center;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 1rem;
  font-weight: 750;
  text-decoration: none;
}

body.jobs-marketplace .job-details-btn.btn-primary {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(255, 193, 7, 0.28);
}

body.jobs-marketplace .job-card--expired {
  opacity: 0.9;
}

body.jobs-marketplace .job-desc {
  margin: 0;
  order: 20;
}

/* Hide empty ad / banner shells that leave gray bars */
body.jobs-marketplace .jobs-ad[hidden],
body.jobs-marketplace #jobs-ad-slot[hidden],
body.jobs-marketplace #jobs-company-banner[hidden],
body.jobs-marketplace #jobs-expired-banner[hidden],
body.jobs-marketplace #jobs-mass-hiring[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
}

.ej-listings-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0 0 0.85rem;
}

.ej-listings-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ej-listings-note {
  margin: 0;
  color: var(--ej-muted);
  font-size: 0.8rem;
}

body.jobs-marketplace .jobs-mass-hiring-section {
  margin: 0 0 1rem;
}

body.jobs-marketplace .jobs-companies-section {
  margin-top: 1.25rem;
}

body.jobs-marketplace .jobs-companies-card {
  border: 1px solid var(--ej-line);
  background: var(--ej-card);
  box-shadow: var(--ej-shadow);
}

body.jobs-marketplace .jobs-notice-card,
body.jobs-marketplace .jobs-review-teaser {
  border: 1px solid var(--ej-line);
}

body.jobs-marketplace .jobs-empty {
  border: 1px dashed var(--ej-line);
}

.ej-filters-head-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ej-filter-done {
  display: none;
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 0.85rem;
  background: var(--ej-blue-mid);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.ej-filter-overlay,
.ej-mobile-dock {
  display: none;
}

.ej-filter-open-btn {
  display: none;
}

@media (max-width: 980px) {
  .ej-board,
  .ej-cats,
  .ej-how {
    grid-template-columns: 1fr 1fr;
  }

  .ej-hire {
    grid-template-columns: 1fr;
  }

  .ej-board {
    grid-template-columns: 1fr;
  }

  .ej-locs {
    grid-template-columns: 1fr 1fr;
  }

  body.jobs-marketplace .jobs-grid {
    grid-template-columns: 1fr;
  }

  body.jobs-marketplace .jobs-sticky-cta {
    display: none;
  }

  .ej-filter-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.ej-filters-open .ej-filter-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .ej-filters {
    display: none;
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 80;
    max-height: min(86vh, 720px);
    overflow: auto;
    width: 100%;
    margin: 0;
    border-radius: 22px 22px 0 0;
    transform: translateY(110%);
    transition: transform 0.28s ease;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
  }

  body.ej-filters-open .ej-filters {
    display: block;
    transform: translateY(0);
  }

  .ej-filter-done {
    display: inline-flex;
    align-items: center;
  }

  .ej-listings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .ej-listings-head-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .ej-filter-open-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--ej-line, var(--line-strong));
    border-radius: 999px;
    background: var(--ej-blue, #2563eb);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 750;
    cursor: pointer;
  }

  .ej-filter-open-btn .ej-fab-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: var(--accent, #ffc107);
    color: #191204;
    font-size: 0.68rem;
    font-weight: 800;
  }

  .ej-filter-open-btn .ej-fab-count[hidden] {
    display: none !important;
  }

  .ej-dock-link,
  .ej-filter-fab,
  .ej-mobile-dock {
    display: none !important;
  }

  body.jobs-marketplace .jobs-companies-actions {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
  }

  body.jobs-marketplace .jobs-companies-actions .btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .ej-listings-note {
    display: none;
  }

  body.jobs-marketplace .job-card-foot {
    flex-wrap: wrap;
  }

  body.jobs-marketplace .job-details-btn {
    width: 100%;
  }

  body.jobs-marketplace .job-location {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.jobs-marketplace .job-fact-value {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .ej-hire {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .ej-hero {
    padding: 1.05rem 0.9rem 1.15rem;
    border-radius: 20px;
  }

  .ej-hero h1 {
    font-size: 1.55rem;
  }

  /* stats kept visible; compact styling in responsive pass */

  .ej-hero-links {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
  }

  .ej-hero-lead {
    font-size: 0.9rem;
  }

  .ej-search-bar {
    position: relative; /* keep icon containment; avoid sticky absolute context */
    top: auto;
    z-index: 5;
    grid-template-columns: 1fr;
    border-radius: 18px;
    padding: 0.65rem;
    gap: 0.55rem;
  }

  .ej-search-bar .jobs-select-label {
    border-left: 0;
    border-top: 1px solid var(--ej-line);
    min-height: 44px;
  }

  .ej-search-submit {
    width: 100%;
    margin-top: 0.15rem;
  }

  .ej-how,
  .ej-cats,
  .ej-locs,
  .ej-hire,
  .ej-board {
    grid-template-columns: 1fr;
  }

  .ej-how {
    grid-template-columns: 1fr 1fr;
  }

  .ej-how-card {
    min-height: 0;
    padding: 0.85rem 0.75rem;
  }

  .ej-ats-banner {
    padding: 1.05rem;
  }
}

.ej-ats-banner--compact {
  grid-template-columns: 1fr !important;
  margin-block: 2rem !important;
  margin-inline: 0 !important;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
}

.ej-ats-banner--compact h2 {
  font-size: 1.05rem;
}

.ej-ats-banner--compact p {
  margin: 0.35rem 0 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
}

.ej-ats-banner--compact .ej-ats-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 0.15rem;
  padding: 0 0.95rem;
  font-size: 0.85rem;
}

body.jobs-marketplace .jobs-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0 1rem;
}

body.jobs-marketplace .ipd-consent {
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
}

body.jobs-marketplace .ipd-consent-inner {
  padding: 0.75rem 0.9rem;
  gap: 0.65rem;
}

body.jobs-marketplace .ipd-consent-text {
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Premium search + filter polish (overrides) ===== */
.ej-hero {
  margin-bottom: 1.15rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.15rem, 3vw, 1.75rem);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

html.theme-dark body.jobs-marketplace .ej-hero,
body.jobs-marketplace.dark .ej-hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(15, 18, 28, 0.98), rgba(11, 14, 22, 1));
}

.ej-hero-inner {
  max-width: none;
}

.ej-hero-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ej-blue-mid);
}

.ej-hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
}

.ej-hero-lead {
  margin-top: 0.5rem;
  max-width: 42rem;
  font-size: 0.96rem;
  line-height: 1.5;
}

.ej-search-bar {
  grid-template-columns: minmax(0, 1.55fr) minmax(190px, 0.9fr) auto;
  gap: 0.55rem;
  align-items: end;
  margin-top: 1.15rem;
  padding: 0.7rem;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.ej-search-field {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  margin: 0;
}

.ej-field-label {
  padding-left: 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ej-muted);
}

.ej-field-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--ej-line);
  background: #f8fafc;
}

html.theme-dark body.jobs-marketplace .ej-field-control,
body.jobs-marketplace.dark .ej-field-control {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

.ej-field-control:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ej-search-bar .jobs-search,
.ej-search-bar .jobs-sort {
  border: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  min-height: 42px;
  padding: 0 !important;
  width: 100%;
}

.ej-search-bar .jobs-sort {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 1.35rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6L8 10.5 12.5 6' stroke='%235c5f6e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0 center !important;
  background-size: 16px 16px !important;
  cursor: pointer;
}

html.theme-dark body.jobs-marketplace .ej-search-bar .jobs-sort,
body.jobs-marketplace.dark .ej-search-bar .jobs-sort {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6L8 10.5 12.5 6' stroke='%23a4a8ba' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.ej-search-submit {
  align-self: end;
  border-radius: 14px;
  min-height: 48px;
  padding: 0 1.35rem;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.ej-hero-meta {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.ej-hero-stats {
  margin: 0;
}

.ej-hero-links {
  margin: 0;
}

.ej-hero-links a {
  min-height: 34px;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ej-ink);
}

html.theme-dark body.jobs-marketplace .ej-hero-links a,
body.jobs-marketplace.dark .ej-hero-links a {
  color: var(--text);
}

/* Left filters panel — desktop only column split */
@media (min-width: 981px) {
  .ej-board {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 1.25rem;
  }
}

.ej-filters {
  top: 5.2rem;
  padding: 1.1rem 1rem 1.2rem;
  border-radius: 20px;
  max-height: calc(100vh - 6.2rem);
  overflow: auto;
  scrollbar-width: thin;
}

.ej-filters-head {
  align-items: flex-start;
  margin-bottom: 0.15rem;
}

.ej-filters-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ej-ink);
}

html.theme-dark body.jobs-marketplace .ej-filters-head h2,
body.jobs-marketplace.dark .ej-filters-head h2 {
  color: var(--text);
}

.ej-filter-meta {
  margin: 0.2rem 0 0;
  color: var(--ej-muted);
  font-size: 0.75rem;
}

.ej-clear-btn {
  min-height: 32px;
  padding: 0 0.7rem !important;
  border-radius: 999px !important;
  border: 1px solid var(--ej-line) !important;
  background: #fff !important;
  color: var(--ej-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

html.theme-dark body.jobs-marketplace .ej-clear-btn,
body.jobs-marketplace.dark .ej-clear-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}

.ej-clear-btn:hover {
  color: var(--ej-blue-mid) !important;
  border-color: #93c5fd !important;
}

.ej-filter-block {
  padding: 0.85rem 0;
  border-top: 1px solid var(--ej-line);
}

.ej-filter-block:first-child {
  padding-top: 0.55rem;
  border-top: 0;
}

body.jobs-marketplace .jobs-toolbar-row.jobs-toolbar-row--top {
  gap: 0.75rem;
  margin-bottom: 0;
}

body.jobs-marketplace .ej-filters .jobs-select-caption {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ej-muted);
}

body.jobs-marketplace .ej-filters .jobs-sort,
body.jobs-marketplace .ej-filters .jobs-company-combobox .jobs-sort {
  border-radius: 12px !important;
  border: 1px solid var(--ej-line) !important;
  background-color: #f8fafc !important;
  min-height: 42px;
  padding: 0.55rem 2.2rem 0.55rem 0.8rem !important;
  font-size: 0.86rem;
}

html.theme-dark body.jobs-marketplace .ej-filters .jobs-sort,
html.theme-dark body.jobs-marketplace .ej-filters .jobs-company-combobox .jobs-sort,
body.jobs-marketplace.dark .ej-filters .jobs-sort,
body.jobs-marketplace.dark .ej-filters .jobs-company-combobox .jobs-sort {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: var(--line) !important;
  color: var(--text);
}

body.jobs-marketplace .ej-filters .jobs-sort:focus,
body.jobs-marketplace .ej-filters .jobs-company-combobox .jobs-sort:focus {
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

body.jobs-marketplace .jobs-filter-caption {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ej-muted);
}

body.jobs-marketplace .jobs-filters,
body.jobs-marketplace .jobs-tags {
  gap: 0.35rem;
}

body.jobs-marketplace .jobs-filter-btn,
body.jobs-marketplace .jobs-tag-chip {
  border-radius: 10px;
  border: 1px solid var(--ej-line);
  background: #fff;
  color: #334155;
  min-height: 34px;
  padding: 0.28rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 650;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

html.theme-dark body.jobs-marketplace .jobs-filter-btn,
html.theme-dark body.jobs-marketplace .jobs-tag-chip,
body.jobs-marketplace.dark .jobs-filter-btn,
body.jobs-marketplace.dark .jobs-tag-chip {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

body.jobs-marketplace .jobs-filter-btn:hover,
body.jobs-marketplace .jobs-tag-chip:hover {
  border-color: #93c5fd;
}

body.jobs-marketplace .jobs-filter-btn.is-active,
body.jobs-marketplace .jobs-tag-chip.is-active {
  background: var(--ej-blue-mid);
  border-color: var(--ej-blue-mid);
  color: #fff;
}

body.jobs-marketplace .jobs-filter-btn--urgent.is-active {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}

body.jobs-marketplace .jobs-filter-btn--expired.is-active {
  background: #64748b;
  border-color: #64748b;
  color: #fff;
}

body.jobs-marketplace .jobs-filter-btn--mass.is-active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

body.jobs-marketplace .jobs-filter-btn--referral.is-active {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #fff;
}

body.jobs-marketplace .jobs-toolbar-foot {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ej-line);
}

body.jobs-marketplace .jobs-count {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
}

@media (max-width: 980px) {
  .ej-filters {
    max-height: min(86vh, 720px);
  }
}

@media (max-width: 720px) {
  .ej-search-bar {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    border-radius: 18px;
    position: relative;
    top: auto;
    z-index: 5;
  }

  .ej-search-submit {
    width: 100%;
  }

  .ej-field-control {
    min-height: 46px;
  }

  .ej-hero-meta {
    gap: 0.55rem;
  }
}

/* ===== Responsive quality pass ===== */

/* Search icon must sit inside the field, not absolute to an ancestor */
.ej-field-control {
  position: relative;
  overflow: hidden;
}

.ej-field-control .jobs-search-icon,
.ej-search-bar .jobs-search-icon {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  color: var(--ej-muted);
}

.ej-search-bar .jobs-search {
  flex: 1 1 auto;
  min-width: 0;
}

/* Hide empty mass-hiring topline spacer that leaves blank card header space */
body.jobs-marketplace .job-card-topline--spacer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Cleaner hero stats pills */
.ej-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ej-hero-stats li,
.ej-hero-stats a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.07);
  color: var(--ej-blue-mid);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.ej-hero-stats strong {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Nested link in first stat must not double-pill */
.ej-hero-stats > li:has(> a) {
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 0;
}

.ej-hero-stats > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.07);
  color: var(--ej-blue-mid);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.ej-search-bar input[type="search"]::-webkit-search-decoration,
.ej-search-bar input[type="search"]::-webkit-search-cancel-button,
.ej-search-bar input[type="search"]::-webkit-search-results-button,
.ej-search-bar input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.ej-search-field--location .jobs-search-icon {
  display: none !important;
}

html.theme-dark body.jobs-marketplace .ej-hero-stats li,
html.theme-dark body.jobs-marketplace .ej-hero-stats a,
body.jobs-marketplace.dark .ej-hero-stats li,
body.jobs-marketplace.dark .ej-hero-stats a {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(147, 197, 253, 0.28);
  color: #93c5fd;
}

/* Page width safety */
body.jobs-marketplace,
body.jobs-marketplace .jobs-page,
body.jobs-marketplace .ej-hero,
body.jobs-marketplace .ej-board {
  max-width: 100%;
  box-sizing: border-box;
}

body.jobs-marketplace .jobs-page {
  width: var(--container);
  margin-inline: auto;
  padding-bottom: 2rem;
}

/* Mobile page clearance */
@media (max-width: 980px) {
  body.jobs-marketplace .jobs-page {
    width: var(--container);
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.jobs-marketplace .jobs-sticky-cta {
    display: none !important;
  }

  body.jobs-marketplace .ej-mobile-dock {
    display: none !important;
  }

  body.jobs-marketplace .job-card {
    padding: 0.95rem 0.9rem 0.85rem;
  }

  body.jobs-marketplace .job-card-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
  }

  body.jobs-marketplace .job-card-head .job-deadline-pill {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.15rem;
  }

  body.jobs-marketplace .job-fact-row {
    grid-template-columns: 1fr 1fr;
  }

  body.jobs-marketplace .jobs-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .ej-listings-head {
    margin-bottom: 0.7rem;
  }

  .ej-ats-banner--compact {
    margin: 1.75rem 0 1.5rem !important;
  }
}

@media (max-width: 720px) {
  .ej-hero {
    margin-top: 0.55rem;
    padding: 0.95rem 0 1rem;
    border-radius: 0;
  }

  .ej-hero-kicker {
    font-size: 0.66rem;
  }

  .ej-hero h1 {
    font-size: clamp(1.35rem, 7vw, 1.7rem);
  }

  .ej-hero-lead {
    font-size: 0.88rem;
  }

  .ej-search-bar {
    position: static;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.65rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  .ej-field-label {
    font-size: 0.66rem;
  }

  .ej-field-control {
    min-height: 46px;
    padding: 0 0.75rem;
  }

  .ej-search-submit {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
  }

  /* Keep compact stats on mobile instead of hiding */
  .ej-hero-stats {
    display: flex !important;
    gap: 0.4rem;
  }

  .ej-hero-stats li,
  .ej-hero-stats a {
    min-height: 1.9rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.74rem;
  }

  .ej-hero-stats strong {
    font-size: 0.82rem;
  }

  .ej-hero-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    margin: 0;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ej-hero-links::-webkit-scrollbar {
    display: none;
  }

  .ej-hero-links a {
    flex: 0 0 auto;
  }

  .ej-board {
    margin-top: 0.85rem;
    gap: 0.85rem;
  }

  body.jobs-marketplace .job-card-foot {
    gap: 0.55rem;
  }

  body.jobs-marketplace .job-details-btn {
    width: 100%;
    min-height: 42px;
  }

  .ej-how {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  body.jobs-marketplace .jobs-page {
    width: calc(100% - 0.75rem);
  }

  .ej-hero-stats li,
  .ej-hero-stats a {
    flex: 1 1 calc(50% - 0.4rem);
    justify-content: flex-start;
  }

  body.jobs-marketplace .job-fact-row {
    gap: 0.35rem;
  }

  .ej-mobile-dock {
    padding: 0.3rem;
  }

  .ej-filter-fab {
    min-width: 3rem;
    min-height: 3rem;
    padding: 0 0.8rem;
    font-size: 0.76rem;
  }
}

/* Prefer reduced sticky search conflict with header */
@supports (padding: max(0px)) {
  @media (max-width: 980px) {
    body.jobs-marketplace .jobs-page {
      padding-bottom: max(5.75rem, calc(4.8rem + env(safe-area-inset-bottom, 0px)));
    }
  }
}


/* Final containment + dock clearance */
@media (max-width: 980px) {
  body.jobs-marketplace {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.jobs-marketplace .ej-search-bar {
    position: relative !important;
  }

  body.jobs-marketplace .ej-search-field--location .ej-field-control {
    padding-left: 0.85rem;
  }

  body.jobs-marketplace .ej-listings {
    scroll-margin-bottom: 6rem;
  }
}

/* ===== Lower-page mobile polish (categories / hire / companies / dock) ===== */
@media (max-width: 980px) {
  body.jobs-marketplace .jobs-page::after {
    content: "";
    display: block;
    height: calc(6.25rem + env(safe-area-inset-bottom, 0px));
  }

  body.jobs-marketplace .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.jobs-marketplace .ej-section {
    margin-top: 1.25rem;
  }

  body.jobs-marketplace .ej-section h2 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
  }

  /* Compact 2-up category cards — no tall empty centers */
  body.jobs-marketplace .ej-cats {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem;
  }

  body.jobs-marketplace .ej-cat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-items: start;
    align-items: center;
    column-gap: 0.6rem;
    row-gap: 0.05rem;
    padding: 0.7rem 0.75rem;
    min-height: 0;
    text-align: left;
    border-radius: 14px;
  }

  body.jobs-marketplace .ej-cat-icon {
    grid-row: 1 / span 2;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    font-size: 1.05rem;
  }

  body.jobs-marketplace .ej-cat strong {
    font-size: 0.88rem;
    line-height: 1.2;
  }

  body.jobs-marketplace .ej-cat span {
    font-size: 0.72rem;
  }

  body.jobs-marketplace .ej-locs {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }

  body.jobs-marketplace .ej-loc {
    padding: 0.75rem 0.8rem;
  }

  body.jobs-marketplace .ej-how {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem;
  }

  body.jobs-marketplace .ej-how-card {
    min-height: 0;
    padding: 0.8rem 0.75rem 0.85rem;
    border-radius: 14px;
  }

  body.jobs-marketplace .ej-how-card span {
    margin-bottom: 0.45rem;
  }

  body.jobs-marketplace .ej-how-card strong {
    font-size: 0.9rem;
  }

  body.jobs-marketplace .ej-how-card p {
    margin-top: 0.3rem;
    font-size: 0.78rem;
  }

  /* Hire block: dense, no stretched empty panels */
  body.jobs-marketplace .ej-hire {
    grid-template-columns: 1fr !important;
    gap: 0.9rem;
    padding: 1rem 0.9rem;
    border-radius: 18px;
  }

  body.jobs-marketplace .ej-hire-panel {
    padding: 0.85rem 0.8rem;
  }

  body.jobs-marketplace .ej-hire-panel-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  body.jobs-marketplace .ej-hire-panel-stats li {
    padding: 0.55rem 0.6rem;
    border-radius: 12px;
  }

  body.jobs-marketplace .ej-hire-panel-stats strong {
    font-size: 0.92rem;
  }

  body.jobs-marketplace .ej-hire-panel-stats span {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  body.jobs-marketplace .ej-hire-list {
    margin: 0.75rem 0 1rem;
    gap: 0.4rem;
  }

  body.jobs-marketplace .ej-hire-actions {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  body.jobs-marketplace .ej-hire-cta {
    width: 100%;
    justify-content: center;
  }

  /* Company directory */
  body.jobs-marketplace .jobs-companies-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 0.9rem !important;
    border-radius: 16px;
  }

  body.jobs-marketplace .jobs-companies-copy {
    padding: 0 !important;
  }

  body.jobs-marketplace .jobs-companies-lead {
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0.4rem 0 0;
  }

  body.jobs-marketplace .jobs-companies-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    overflow: visible;
  }

  body.jobs-marketplace .jobs-companies-actions .btn {
    flex: 1 1 calc(50% - 0.45rem);
    min-height: 40px;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
  }

  /* Recruit CTA — keep visual small so it doesn’t dominate */
  body.jobs-marketplace .jobs-notice-card {
    padding: 1rem 0.9rem !important;
    border-radius: 16px;
    gap: 0.75rem;
  }

  body.jobs-marketplace .jobs-notice-visual {
    width: min(100%, 160px);
    min-height: 110px;
    margin: 0 auto;
  }

  body.jobs-marketplace .jobs-notice-lottie {
    width: 120px !important;
    height: 120px !important;
  }

  body.jobs-marketplace .jobs-notice-float {
    display: none;
  }

  body.jobs-marketplace .jobs-cta-banner {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 420px) {
  body.jobs-marketplace .ej-cats {
    gap: 0.45rem;
  }

  body.jobs-marketplace .ej-cat {
    padding: 0.6rem 0.55rem;
    column-gap: 0.45rem;
  }

  body.jobs-marketplace .ej-cat-icon {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.95rem;
  }

  body.jobs-marketplace .ej-hire-panel-stats {
    grid-template-columns: 1fr;
  }

  body.jobs-marketplace .jobs-companies-actions .btn {
    flex: 1 1 100%;
  }
}


/* ATS blue card spacing — beats ats-checker.css (loaded later) */
body.jobs-marketplace a.ej-ats-banner.ej-ats-banner--compact {
  display: block !important;
  margin: 2.25rem 0 2rem !important;
  padding: 1.25rem 1.35rem !important;
}

body.jobs-marketplace .ej-listings .jobs-grid {
  margin-bottom: 0;
}

body.jobs-marketplace .ej-listings .jobs-load-more-wrap {
  margin-top: 0.25rem !important;
}

/* ===== Dark theme + job card containment ===== */

/* Dark tokens so white-on-white never happens on marketplace cards */
html.theme-dark body.jobs-marketplace,
body.jobs-marketplace.dark {
  --ej-ink: #f8fafc;
  --ej-muted: #94a3b8;
  --ej-line: rgba(148, 163, 184, 0.28);
  --ej-bg: #0b1220;
  --ej-card: rgba(15, 23, 42, 0.92);
  --ej-shadow: none;
  --ej-blue-soft: rgba(37, 99, 235, 0.22);
}

/* Category / location cards: always readable text */
body.jobs-marketplace .ej-cat,
body.jobs-marketplace .ej-loc {
  color: var(--ej-ink) !important;
  background: var(--ej-card) !important;
  border-color: var(--ej-line) !important;
}

body.jobs-marketplace .ej-cat strong,
body.jobs-marketplace .ej-loc strong {
  color: var(--ej-ink) !important;
}

body.jobs-marketplace .ej-cat span,
body.jobs-marketplace .ej-loc span,
body.jobs-marketplace .ej-loc span span {
  color: var(--ej-muted) !important;
}

html.theme-dark body.jobs-marketplace .ej-cat-icon,
body.jobs-marketplace.dark .ej-cat-icon {
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
}

html.theme-dark body.jobs-marketplace .ej-loc-pin,
body.jobs-marketplace.dark .ej-loc-pin {
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
}

html.theme-dark body.jobs-marketplace .ej-section h2,
body.jobs-marketplace.dark .ej-section h2 {
  color: var(--ej-ink);
}

/* Job card: accent stays at TOP; content stays inside; foot last */
body.jobs-marketplace .job-card {
  overflow: hidden;
  color: var(--ej-ink);
}

body.jobs-marketplace .job-card-accent {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  height: 3px !important;
  z-index: 2;
  pointer-events: none;
}

body.jobs-marketplace .job-desc {
  order: unset !important;
  min-height: 0 !important;
  margin: 0.15rem 0 0 !important;
  padding-bottom: 0.15rem;
}

body.jobs-marketplace .job-card-foot {
  order: unset !important;
  margin-top: auto;
  flex-wrap: wrap;
}

body.jobs-marketplace .job-card-meta h3,
body.jobs-marketplace .job-card-meta h3 a,
body.jobs-marketplace .job-roles-label,
body.jobs-marketplace .job-roles li {
  color: var(--ej-ink);
}

body.jobs-marketplace .job-location,
body.jobs-marketplace .job-meta-row,
body.jobs-marketplace .job-meta-row a,
body.jobs-marketplace .job-desc {
  color: var(--ej-muted);
}

html.theme-dark body.jobs-marketplace .job-fact,
body.jobs-marketplace.dark .job-fact {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.2);
}

html.theme-dark body.jobs-marketplace .job-fact-label,
body.jobs-marketplace.dark .job-fact-label {
  color: var(--ej-muted);
}

html.theme-dark body.jobs-marketplace .job-fact-value,
body.jobs-marketplace.dark .job-fact-value {
  color: var(--ej-ink);
}

html.theme-dark body.jobs-marketplace .job-card-foot {
  border-top-color: var(--ej-line);
}

@media (max-width: 720px) {
  body.jobs-marketplace .job-card {
    padding: 0.95rem 0.85rem 0.9rem;
    gap: 0.55rem;
  }

  body.jobs-marketplace .job-fact-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  body.jobs-marketplace .job-fact-value {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
  }

  body.jobs-marketplace .job-card-foot {
    flex-direction: column;
    align-items: stretch;
  }

  body.jobs-marketplace .job-details-btn {
    width: 100%;
  }

  body.jobs-marketplace .job-meta-row {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* ===== Job card fit + ATS gap (mobile-first hard fix) ===== */
body.jobs-marketplace .ej-listings {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

body.jobs-marketplace .ej-ats-slot {
  display: block;
  width: 100%;
  padding: 1.5rem 0 1.35rem;
  box-sizing: border-box;
}

body.jobs-marketplace .ej-ats-slot .ej-ats-banner,
body.jobs-marketplace .ej-ats-slot a.ej-ats-banner.ej-ats-banner--compact {
  display: grid !important;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

body.jobs-marketplace .jobs-grid {
  width: 100%;
  min-width: 0;
}

body.jobs-marketplace .job-card {
  height: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.jobs-marketplace .jobs-load-more-wrap {
  margin: 0.25rem 0 1rem !important;
}

@media (max-width: 980px) {
  body.jobs-marketplace .jobs-grid {
    grid-template-columns: 1fr !important;
    gap: 0.9rem !important;
  }

  body.jobs-marketplace .job-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 0.9rem 1rem !important;
    border-radius: 16px;
    overflow: hidden;
  }

  body.jobs-marketplace .job-card-accent {
    height: 3px !important;
  }

  body.jobs-marketplace .job-card-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.6rem;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }

  body.jobs-marketplace .job-card-head .job-deadline-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body.jobs-marketplace .job-card-tags {
    gap: 0.3rem;
  }

  body.jobs-marketplace .job-fact-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem;
    margin: 0;
  }

  body.jobs-marketplace .job-fact {
    min-height: 0 !important;
    padding: 0.4rem 0.5rem;
    gap: 0.1rem;
  }

  body.jobs-marketplace .job-fact-value {
    white-space: normal !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    font-size: 0.78rem;
  }

  body.jobs-marketplace .job-card-body {
    gap: 0.3rem;
  }

  body.jobs-marketplace .job-roles-label {
    margin: 0;
  }

  body.jobs-marketplace .job-desc {
    margin: 0 !important;
    min-height: 0 !important;
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  body.jobs-marketplace .job-card-foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.25rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--ej-line);
  }

  body.jobs-marketplace .job-card-foot .job-meta-row {
    display: none; /* company already in header */
  }

  body.jobs-marketplace .job-details-btn {
    width: 100% !important;
    min-height: 44px;
    border-radius: 12px !important;
    box-sizing: border-box;
  }

  body.jobs-marketplace .ej-ats-slot {
    padding: 1.35rem 0 1.15rem;
  }

  body.jobs-marketplace .ej-ats-banner--compact {
    padding: 1.05rem 1rem !important;
    border-radius: 14px;
  }

  body.jobs-marketplace .ej-ats-banner--compact h2 {
    font-size: 1rem;
    line-height: 1.25;
  }

  body.jobs-marketplace .ej-ats-banner--compact p {
    margin: 0.4rem 0 0.75rem;
    font-size: 0.78rem;
    line-height: 1.4;
  }
}

@media (max-width: 400px) {
  body.jobs-marketplace .job-card {
    padding: 0.9rem 0.8rem 0.95rem !important;
  }

  body.jobs-marketplace .job-logo-wrap {
    width: 44px;
    height: 44px;
  }

  body.jobs-marketplace .ej-ats-slot {
    padding: 1.25rem 0 1rem;
  }
}

/* ===== Mobile job card — single source of truth ===== */
@media (max-width: 980px) {
  html.theme-dark body.jobs-marketplace,
  body.jobs-marketplace,
  body.jobs-marketplace.dark {
    scroll-padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.jobs-marketplace {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.jobs-marketplace .jobs-page {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.jobs-marketplace .ej-listings {
    padding-bottom: 0.5rem;
  }

  body.jobs-marketplace .jobs-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    align-items: start !important;
    padding-bottom: 0.25rem;
  }

  body.jobs-marketplace .job-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.85rem 0.8rem 0.8rem !important;
    gap: 0.45rem !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transform: none !important;
    animation: none !important;
    scroll-margin-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.jobs-marketplace .job-card:hover {
    transform: none !important;
  }

  body.jobs-marketplace .job-card-accent {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: 3px !important;
    z-index: 2 !important;
  }

  body.jobs-marketplace .job-card-topline {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.3rem !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  body.jobs-marketplace .job-card-topline--spacer {
    display: none !important;
  }

  body.jobs-marketplace .job-card-head {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    gap: 0.55rem !important;
    align-items: center !important;
    margin: 0 !important;
    min-height: 0 !important;
  }

  body.jobs-marketplace .job-card-head .job-logo-wrap,
  body.jobs-marketplace .job-card-head .job-card-meta,
  body.jobs-marketplace .job-card-head .job-deadline-pill {
    grid-area: auto !important;
  }

  body.jobs-marketplace .job-logo-wrap {
    width: 42px !important;
    height: 42px !important;
    border-radius: 11px !important;
  }

  body.jobs-marketplace .job-card-meta h3 {
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
  }

  body.jobs-marketplace .job-location {
    margin: 0.15rem 0 0 !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    font-size: 0.74rem !important;
    line-height: 1.3 !important;
  }

  body.jobs-marketplace .job-card-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.28rem !important;
    margin: 0 !important;
  }

  body.jobs-marketplace .job-deadline-pill,
  body.jobs-marketplace .ej-status,
  body.jobs-marketplace .job-badge {
    font-size: 0.66rem !important;
    padding: 0.18rem 0.5rem !important;
    line-height: 1.2 !important;
  }

  body.jobs-marketplace .job-fact-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.35rem !important;
    margin: 0 !important;
  }

  body.jobs-marketplace .job-fact {
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 0.35rem 0.45rem !important;
    gap: 0.08rem !important;
    border-radius: 9px !important;
  }

  body.jobs-marketplace .job-fact-label {
    font-size: 0.56rem !important;
    letter-spacing: 0.06em !important;
  }

  body.jobs-marketplace .job-fact-value {
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    font-size: 0.74rem !important;
    line-height: 1.25 !important;
  }

  body.jobs-marketplace .job-card-body {
    display: grid !important;
    gap: 0.2rem !important;
    margin: 0 !important;
  }

  body.jobs-marketplace .job-roles-label {
    margin: 0 !important;
    font-size: 0.64rem !important;
  }

  body.jobs-marketplace .job-roles {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid !important;
    gap: 0.15rem !important;
  }

  body.jobs-marketplace .job-roles li {
    font-size: 0.86rem !important;
    line-height: 1.3 !important;
    padding-left: 0.85rem !important;
  }

  body.jobs-marketplace .job-tag-row:empty {
    display: none !important;
  }

  body.jobs-marketplace .job-tag-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.28rem !important;
    margin: 0 !important;
  }

  body.jobs-marketplace .job-tag-pill {
    font-size: 0.68rem !important;
    padding: 0.18rem 0.5rem !important;
  }

  body.jobs-marketplace .job-tag-pill--spacer {
    display: none !important;
  }

  /* Drop long blurbs on phone — keep cards compact */
  body.jobs-marketplace .job-desc {
    display: none !important;
  }

  body.jobs-marketplace .job-card-foot {
    display: block !important;
    margin-top: 0.1rem !important;
    padding-top: 0.55rem !important;
    border-top: 1px solid var(--ej-line) !important;
  }

  body.jobs-marketplace .job-card-foot .job-meta-row {
    display: none !important;
  }

  body.jobs-marketplace .job-details-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 0.85rem !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    font-size: 0.84rem !important;
    font-weight: 750 !important;
    box-shadow: none !important;
  }

  body.jobs-marketplace .ej-mobile-dock {
    display: none !important;
  }
}

@media (max-width: 400px) {
  body.jobs-marketplace .job-card {
    padding: 0.8rem 0.7rem 0.75rem !important;
    gap: 0.4rem !important;
  }

  body.jobs-marketplace .job-logo-wrap {
    width: 40px !important;
    height: 40px !important;
  }

  body.jobs-marketplace .job-details-btn {
    min-height: 38px !important;
    height: 38px !important;
  }
}

/* ===== Card alignment + full width on tablet/phone ===== */
@media (max-width: 980px) {
  body.jobs-marketplace .ej-board {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.jobs-marketplace .ej-listings {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
  }

  body.jobs-marketplace .jobs-page {
    width: calc(100% - 0.9rem) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
  }

  body.jobs-marketplace .jobs-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  body.jobs-marketplace .job-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.jobs-marketplace .job-fact-value {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    word-break: break-word !important;
  }

  /* When filters sheet is closed it must not reserve a grid track */
  body.jobs-marketplace:not(.ej-filters-open) .ej-filters {
    display: none !important;
  }
}

/* Tablet: use two card columns when there is room */
@media (min-width: 640px) and (max-width: 980px) {
  body.jobs-marketplace .jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
}
