/* ── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  --brand-900: #0d1b2a;
  --brand-800: #1b2d3f;
  --brand-700: #1e3a5f;
  --brand-600: #2563eb;
  --brand-500: #3b82f6;
  --brand-400: #60a5fa;
  --brand-100: #dbeafe;
  --brand-50:  #eff6ff;

  --accent:       #0ea5e9;
  --accent-hover: #0284c7;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  --surface:        #ffffff;
  --surface-soft:   #f8fafc;
  --surface-border: #e2e8f0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface-soft);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--brand-900) !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: .9rem 0;
}
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -.3px;
}
.navbar-brand span {
  color: var(--accent);
}
.nav-link {
  color: rgba(255,255,255,.7) !important;
  font-size: .9rem;
  transition: color .15s;
}
.nav-link:hover, .nav-link.active {
  color: #fff !important;
}

/* ── Hero / search bar ──────────────────────────────────────────────────────── */
.search-hero {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  padding: 3.5rem 0 3rem;
  color: #fff;
}
.search-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: .4rem;
}
.search-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.search-box {
  position: relative;
}
.search-box .form-control {
  padding: .85rem 1.1rem .85rem 3rem;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}
.search-box .form-control:focus {
  box-shadow: 0 0 0 3px rgba(59,130,246,.35);
  outline: none;
}
.search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.btn-search {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background .15s;
}
.btn-search:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ── Filter panel ───────────────────────────────────────────────────────────── */
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.filter-panel .filter-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.filter-panel .form-select,
.filter-panel .form-control {
  font-size: .875rem;
  border-color: var(--surface-border);
  border-radius: var(--radius-sm);
}
.filter-panel .form-select:focus,
.filter-panel .form-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.filter-section {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--surface-border);
}
.filter-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.btn-clear-filters {
  font-size: .8rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.btn-clear-filters:hover { color: var(--brand-600); }

/* ── Job cards ──────────────────────────────────────────────────────────────── */
.job-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, border-color .18s, transform .18s;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-400);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}

/* Card two-column layout */
.jc-body {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.jc-main {
  flex: 1;
  min-width: 0;
}

/* Title */
.jc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-600);
  line-height: 1.3;
  margin-bottom: .2rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.jc-favicon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}
.job-card:hover .jc-title {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Company */
.jc-company {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: .2rem;
}

/* Location */
.jc-location {
  font-size: .825rem;
  color: var(--text-secondary);
  margin-bottom: .15rem;
}

/* Compensation */
.jc-comp {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: .15rem;
}

/* Industry · Sub-industry */
.jc-industry {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

/* Inline badges row in main column */
.jc-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .35rem;
}

/* Snippet — right column */
.jc-snippet {
  flex: 0 0 50%;
  font-size: .805rem;
  line-height: 1.55;
  border-left: 1px solid var(--surface-border);
  padding-left: 1rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.badge-remote    { background: #dcfce7; color: #166534; }
.badge-hybrid    { background: #fef9c3; color: #854d0e; }
.badge-onsite    { background: #e0f2fe; color: #075985; }
.badge-pe        { background: var(--brand-100); color: var(--brand-700); }
.badge-industry  { background: #f3e8ff; color: #6b21a8; }

.badge {
  font-size: .72rem;
  font-weight: 600;
  padding: .28em .65em;
  border-radius: 999px;
  letter-spacing: .01em;
}

/* ── Results bar ────────────────────────────────────────────────────────────── */
.results-bar {
  font-size: .875rem;
  color: var(--text-secondary);
  padding: .6rem 0;
}
.results-bar strong { color: var(--text-primary); }

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.pagination .page-link {
  color: var(--brand-600);
  border-color: var(--surface-border);
  font-size: .875rem;
  padding: .45rem .8rem;
}
.pagination .page-link:hover {
  background: var(--brand-50);
  border-color: var(--brand-400);
}
.pagination .page-item.active .page-link {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: var(--text-muted);
}

/* ── Empty state ────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.empty-state svg {
  width: 52px;
  height: 52px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .4rem;
}

/* ── Loading skeleton ───────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: .75rem;
}
.skeleton-line {
  height: 14px;
  margin-bottom: .6rem;
}

/* ── Job detail page ────────────────────────────────────────────────────────── */
.detail-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--surface-border);
  padding: 2rem 0 1.5rem;
}
.detail-hero .job-title-lg {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.detail-hero .company-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-600);
}
.detail-hero .company-link:hover { color: var(--accent-hover); }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-size: .875rem;
  color: var(--text-secondary);
  margin: .75rem 0 1rem;
}
.detail-meta-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .875rem;
  line-height: 1.5;
}
.detail-meta-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  min-width: 7rem;
  flex-shrink: 0;
}
.detail-meta-value {
  color: var(--text-secondary);
}
.detail-meta-link {
  text-decoration: none;
  color: var(--brand-500);
}
.detail-meta-link:hover { text-decoration: underline; }

.detail-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Company hero: meta (left) + about description (right) */
.co-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2.5rem;
  align-items: start;
  margin-top: .5rem;
  margin-bottom: .5rem;
}
.co-about {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-top: .1rem;
}
.co-about .info-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
@media (max-width: 767px) {
  .co-hero-grid { grid-template-columns: 1fr; gap: .75rem; }
}
.co-ext-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  font-weight: 500;
  padding: .2rem .55rem;
  border-radius: 99px;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--surface-raised);
  transition: border-color .15s, color .15s;
}
.co-ext-link:hover {
  border-color: var(--brand-400);
  color: var(--brand-400);
  text-decoration: none;
}

.detail-body {
  padding: 2rem 0;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.info-card .info-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.info-card .info-value {
  font-size: .9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.pe-banner {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.pe-banner svg {
  color: var(--brand-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.pe-banner .pe-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--brand-600);
  margin-bottom: .1rem;
}
.pe-banner .pe-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--brand-800);
}

.btn-apply {
  background: var(--brand-600);
  color: #fff;
  border: none;
  padding: .85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: background .15s;
  width: 100%;
  text-align: center;
  display: block;
}
.btn-apply:hover {
  background: var(--accent-hover);
  color: #fff;
}

.job-description {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-primary);
  word-break: break-word;
}
.job-description p {
  margin-bottom: .75em;
}
.job-description p:last-child {
  margin-bottom: 0;
}
.job-description ul, .job-description ol {
  padding-left: 1.4rem;
  margin-bottom: .75em;
}
.job-description li {
  margin-bottom: .25em;
}
.job-description h3 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary);
  margin-top: 1.5em;
  margin-bottom: .4em;
}
.job-description h3:first-child {
  margin-top: .25em;
}

/* ── Industry cards ─────────────────────────────────────────────────────────── */
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  height: 100%;
}
.industry-card-name {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--brand-500);
  text-decoration: none;
  margin-bottom: .5rem;
}
.industry-card-name:hover { color: var(--accent-hover); text-decoration: underline; }
.industry-sub-list {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .5rem;
}
.industry-sub-link {
  font-size: .78rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.industry-sub-link:hover { color: var(--brand-500); text-decoration: underline; }

/* ── Company cards ──────────────────────────────────────────────────────────── */
.company-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color .15s, box-shadow .15s;
  height: 100%;
}
.company-card:hover {
  border-color: var(--brand-400);
  box-shadow: 0 2px 8px rgba(59,130,246,.1);
  color: var(--text-primary);
}
.company-card-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.company-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  min-height: 1.25rem;
}
.company-job-count {
  font-size: .8rem;
  color: var(--brand-500);
  font-weight: 500;
}
.company-job-count--none {
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  background: var(--brand-900);
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  padding: 1.5rem 0;
  margin-top: auto;
}
footer a { color: rgba(255,255,255,.6); }
footer a:hover { color: #fff; }

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.main-content { flex: 1; padding: 2rem 0; }
.text-muted-sm { font-size: .8rem; color: var(--text-muted); }
.back-link { font-size: .875rem; color: var(--text-secondary); }
.back-link:hover { color: var(--brand-600); }

/* ── Filter collapse toggle (mobile only) ───────────────────────────────────── */
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-primary);
}

@media (max-width: 991.98px) {
  /* Move apply button to top of sidebar on mobile so it's not buried */
  .detail-body .col-12.col-lg-4 { order: -1; }
  .btn-apply { margin-bottom: 1rem; }
}

@media (max-width: 767.98px) {
  .search-hero { padding: 2rem 0 1.75rem; }
  .search-hero h1 { font-size: 1.5rem; }
  .search-hero p { font-size: .95rem; }
  .filter-panel { margin-bottom: 1rem; }
  .detail-hero { padding: 1.5rem 0 1.25rem; }
  .detail-hero .job-title-lg { font-size: 1.25rem; }
  .detail-meta { gap: .4rem .9rem; font-size: .8rem; }
  .job-card { padding: .9rem 1rem; }
  .jc-title { font-size: .9rem; }
  .jc-snippet { display: none; }
  .info-card { padding: 1rem; }
  /* Tighten pagination on small screens */
  .pagination .page-link { padding: .4rem .65rem; font-size: .8rem; }
  /* Results bar */
  .results-bar { font-size: .8rem; }
  /* Breadcrumb */
  .breadcrumb { font-size: .75rem; }
}

/* ── Accordion filter panel variant ────────────────────────────────────────── */
.filter-panel--accordion {
  padding: 0;
  overflow: hidden; /* keep border-radius clipping */
}

/* Sticky on desktop */
@media (min-width: 992px) {
  .filter-panel--sticky {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

/* Panel header row */
.fpa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--surface-border);
}

/* Static (non-toggle) section — used for active-jobs toggle */
.fpa-static {
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--surface-border);
}

/* Accordion section */
.fsa {
  border-bottom: 1px solid var(--surface-border);
}
.fsa--last {
  border-bottom: none;
}

/* Accordion section static label (Company) */
.fsa-static-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .75rem 1.1rem .3rem;
}

/* Accordion toggle button */
.fsa-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: .65rem 1.1rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  gap: .4rem;
}
.fsa-toggle:hover { color: var(--text-secondary); background: var(--surface-soft); }

.fsa-chev {
  flex-shrink: 0;
  transition: transform .2s;
}
.fsa-toggle[aria-expanded="false"] .fsa-chev {
  transform: rotate(-90deg);
}

/* Accordion body */
.fsa-body {
  padding: .1rem 1.1rem .85rem;
}

/* Section active badge */
.fs-badge {
  background: var(--brand-600);
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-size: .65rem;
  font-weight: 600;
  line-height: 1.7;
  display: inline-block;
  vertical-align: middle;
  text-transform: none;
  letter-spacing: 0;
}

/* Total filter count badge on header */
.fs-total-badge {
  background: var(--brand-600);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: .7rem;
  font-weight: 600;
}

/* Inline search within accordion */
.fs-search {
  width: 100%;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: .35rem .65rem;
  font-size: .82rem;
  margin-bottom: .5rem;
  outline: none;
  color: var(--text-primary);
  background: var(--surface);
}
.fs-search:focus { border-color: var(--brand-500); }

/* Checkbox list */
.fs-list {
  display: flex;
  flex-direction: column;
}

.fs-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .15rem;
  font-size: .875rem;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  user-select: none;
  line-height: 1.35;
}
.fs-check:hover { color: var(--brand-700); }
.fs-check input[type="checkbox"] {
  accent-color: var(--brand-600);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}
.fs-check-label { flex: 1; }
.fs-count {
  font-size: .75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
/* Hide overflow items; reveal all when search is active */
.fs-check[data-overflow] { display: none; }
.fs-list--searching .fs-check[data-overflow] { display: flex; }

.fs-show-more {
  background: none;
  border: none;
  padding: .3rem .15rem 0;
  font-size: .8rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}
.fs-show-more:hover { color: var(--brand-600); }

/* ── Top filter bar ─────────────────────────────────────────────────────────── */
.top-filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--surface-border);
  padding: .6rem 0;
}
.tfb-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Compensation dropdown panel */
.tfb-comp-menu {
  min-width: 240px !important;
  padding: .75rem !important;
}

/* Country dropdown button */
.tfb-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .12s, color .12s;
  white-space: nowrap;
}
.tfb-btn:hover, .tfb-btn[aria-expanded="true"] {
  border-color: var(--brand-400);
  color: var(--brand-700);
}
.tfb-btn[aria-expanded="true"] .fsa-chev {
  transform: rotate(180deg);
}

/* Country dropdown panel */
.tfb-dropdown-menu {
  padding: .6rem .75rem !important;
  min-width: 220px;
  border-color: var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.tfb-list-scroll {
  max-height: 240px;
  overflow-y: auto;
}


/* ── Active filter chips bar ────────────────────────────────────────────────── */
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  padding: .1rem 0 .75rem;
}
.active-chips-label {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  background: var(--brand-100);
  color: var(--brand-800);
  border-radius: 999px;
  padding: .22rem .55rem .22rem .75rem;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
}
.filter-chip-remove {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-500);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
}
.filter-chip-remove:hover { color: var(--brand-800); }

/* ── Typeahead ──────────────────────────────────────────────────────────────── */
.typeahead-wrap {
  position: relative;
}
.typeahead-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: .25rem 0;
}
.typeahead-dropdown li {
  padding: .45rem .85rem;
  font-size: .875rem;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.typeahead-dropdown li:hover,
.typeahead-dropdown li[aria-selected="true"] {
  background: var(--brand-50);
  color: var(--brand-700);
}
.typeahead-dropdown li .job-count {
  font-size: .72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.typeahead-dropdown li.no-results {
  color: var(--text-muted);
  cursor: default;
  font-style: italic;
}
.typeahead-dropdown li.no-results:hover { background: none; }
.typeahead-chip {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--brand-100);
  color: var(--brand-800);
  border-radius: var(--radius-sm);
  padding: .3rem .65rem;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: .4rem;
}
.typeahead-chip-clear {
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
  color: var(--brand-600);
  cursor: pointer;
  margin-left: auto;
}
.typeahead-chip-clear:hover { color: var(--brand-800); }

/* ── Info card list (benefits, eligible countries, etc.) ────────────────────── */
.info-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: .9rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.8;
}

/* ── Compensation range inputs ──────────────────────────────────────────────── */
.comp-range {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.comp-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.comp-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.comp-input {
  font-size: .82rem !important;
  padding: .3rem .55rem !important;
}
.comp-dash {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 1rem;
  flex-shrink: 0;
}

/* ── Top bar pill-group separator ───────────────────────────────────────────── */
.tfb-sep {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--surface-border);
  align-self: center;
}
