:root {
  --ink: #151619;
  --muted: #6f7075;
  --muted-2: #9a9ba1;
  --line: #e1e4ea;
  --line-strong: #e1e4ea;
  --blue: #1a73e8;
  --bg: #F2F3F5;
  --gray: #555;
  --gray-2: #888;
  --header-h: 67px;
}

.container {
  max-width: 1162px;
  margin: 0 auto;
  padding: 0 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  min-height: var(--header-h);
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: visible;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.header-logo img {
  display: block;
  height: 22px;
  width: auto;
}

.header-logo-fixed {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.header-logo-inline {
  display: none;
  margin-right: 32px;
}

/* Below ~1480px the fixed-left logo (32px from the viewport edge) would
   start overlapping "Apply" (whose left edge tracks the content
   container's left edge, which moves right as the viewport narrows past
   the container's 1162px max-width). Switch to an inline logo right
   before "Apply" instead, so the two never collide. */
@media (max-width: 1480px) {
  .header-logo-fixed {
    display: none;
  }

  .header-logo-inline {
    display: inline-flex;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.header-right {
  justify-content: flex-end;
  gap: 19px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* "Apply" is the only nav-link inside .header-left -- drop its left
   padding so the visible text lines up exactly with the content edge
   below it (hero h1, search input), not 14px right of it. */
.header-left .nav-link {
  padding-left: 0;
}

.mobile-menu-wrap {
  display: none;
}

.menu-toggle {
  background: none;
  border: 0;
  color: #c2c3c7;
  font-size: 20px;
  line-height: 1;
  padding: 0 14px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

@media (max-width: 720px) {
  .header-left .nav-link,
  .nav-group {
    display: none;
  }

  .mobile-menu-wrap {
    display: block;
  }
}

.nav-link {
  color: #c2c3c7;
  font-size: 15px;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0 14px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.nav-link.is-active {
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 -3px 0 0 #fff;
}


.stats-wrap {
  position: relative;
}

.stats-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 0;
  z-index: 400;
}

.stats-wrap.open .stats-menu {
  display: block;
}

.stats-menu a {
  display: block;
  padding: 6px 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 400;
}

.stats-menu a:hover {
  background: #fafafa;
}

.page-home {
  display: flex;
  flex-direction: column;
}

.hero {
  padding: 51px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 42px;
  align-items: start;
}

.hero h1 {
  margin: 0 0 11px;
  max-width: 600px;
  font-size: 51px;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 21px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  height: 50px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: #fafafa;
}

.hero-privacy {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
}

.hero-privacy.is-error {
  color: #c0392b;
}

.logo-card {
  background: #fafafa;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 14px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  justify-content: center;
}

.logo-grid .logo-dot {
  width: 41px;
  height: 41px;
  border-radius: 0;
  background: transparent;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  line-height: 0;
}

.logo-dot,
.company-mark,
.company-card-mark {
  object-fit: contain;
  background: #fff;
  flex: none;
}

.company-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid #edeff3;
  padding: 1px;
  box-sizing: border-box;
}

.logo-dot {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.company-card-mark {
  width: 24px;
  height: 24px;
}

img.logo-dot,
img.company-mark,
img.company-card-mark {
  display: block;
}

span.logo-dot,
span.company-mark,
span.company-card-mark,
.is-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 11px;
  color: var(--gray);
}

span.logo-dot[hidden],
span.company-mark[hidden],
span.company-card-mark[hidden],
.is-letter[hidden] {
  display: none !important;
}

span.logo-dot {
  font-size: 18px;
}

.stats-section {
  border-top: 1px solid var(--line);
  padding: 51px 0 53px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.stat-value {
  font-size: 30px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 22px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.search-page {
  background: var(--bg);
  min-height: 100vh;
}

.search-layout {
  padding: 24px 0 150px;
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}

.filter-input,
.dropdown-trigger {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  padding: 0 14px;
  min-width: 0;
}

.filter-q {
  min-width: 140px;
  flex: 2;
}

.filter-loc {
  min-width: 140px;
  flex: 1.5;
}

.filter-input::placeholder {
  color: var(--muted-2);
}

.filter-input:focus,
.dropdown-trigger:focus {
  outline: none;
  border-color: #ccc;
}

.dropdown {
  position: relative;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 96px;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown-trigger::after {
  content: "▾";
  font-size: 10px;
  color: var(--muted);
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  z-index: 400;
  max-height: 280px;
  overflow: auto;
  padding: 2px 0;
}

.dropdown.open .dropdown-panel {
  display: block;
}

.dropdown-item,
.level-row {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 6px 10px;
  font-size: 14px;
  color: #111;
  cursor: pointer;
  font-weight: 400;
}

.dropdown-item:hover,
.level-row:hover {
  background: #fafafa;
}

.dropdown-item.is-selected {
  background: #111;
  color: #fff;
}

.level-clear {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--blue);
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
}

.level-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-row input {
  accent-color: #111;
}

.count-chip {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.cat-sep {
  padding: 8px 10px 4px;
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  flex-shrink: 0;
  margin-left: auto;
}

.view-toggle {
  display: flex;
  align-items: center;
  background: #f4f4f5;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  padding: 2px;
}

.view-toggle button {
  height: 38px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.view-toggle button + button {
  border-left: 0;
}

.view-toggle button.is-active {
  background: #fff;
  color: var(--ink);
}

.match-line {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.resume-banner[hidden] {
  display: none;
}

.resume-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #eef4fe;
  border: 1px solid #cfe0fb;
  border-radius: 10px;
  font-size: 13px;
}

.resume-banner-label {
  font-weight: 600;
  color: var(--ink);
}

.resume-banner-skills {
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
}

.resume-banner-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.resume-banner-btn {
  background: #fff;
  border: 1px solid #cfe0fb;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
}

.resume-banner-btn:hover {
  background: #e3edfd;
}

.resume-banner-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 260px;
}

.resume-banner-edit[hidden] {
  display: none;
}

.resume-edit-input {
  flex: 1 1 auto;
  min-width: 160px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
}

.match-th {
  width: 86px;
}

.match-cell {
  white-space: nowrap;
}

.match-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--muted-2);
}

.match-badge.is-high {
  background: #1a7f37;
}

.match-badge.is-mid {
  background: #b8860b;
}

.match-badge.is-low {
  background: var(--muted-2);
}

.match-skills {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  white-space: normal;
  max-width: 140px;
}

.results-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 12px 12px;
  border-top: 1px solid #f0f0f0;
}

.pager button {
  height: 28px;
  min-width: 28px;
  padding: 0 8px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
}

.pager button.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

.pager-gap {
  color: #b0b0b0;
  padding: 0 4px;
  font-size: 13px;
}

.stats-page .results-wrap {
  padding: 0 0 24px;
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-weight: 400;
}

.jobs-table thead tr {
  height: 51px;
}

.jobs-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: #f4f4f5;
}

.th-comp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.info-tip {
  font-style: normal;
  font-size: 12px;
  color: var(--muted-2);
  cursor: help;
}

.jobs-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 400;
  color: var(--ink);
}

.jobs-table th:first-child,
.jobs-table td:first-child {
  padding-left: 10px;
}

.jobs-table th:last-child,
.jobs-table td:last-child {
  padding-right: 10px;
}

.jobs-table tbody tr:nth-child(2n) td {
  background: #fafafa;
}

.jobs-table tbody tr:nth-child(2n+1) td {
  background: #fff;
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.title-td {
  max-width: 340px;
  width: 28%;
}

.title-cell {
  font-weight: 400;
  color: #222;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
}

.level-cell {
  color: #222;
  white-space: nowrap;
}

.location-cell {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  max-width: 200px;
}

.loc-cell {
  color: var(--muted);
}

.posted-cell {
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
  cursor: default;
}

.new-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1a7f37;
  background: #dafbe1;
  border-radius: 999px;
  vertical-align: middle;
}

.base-muted {
  color: #737373;
}

.est-cell {
  white-space: nowrap;
  font-weight: 500;
}

.est-cell sup {
  font-size: 9px;
  color: var(--muted-2);
  margin-left: 2px;
  font-weight: 400;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  line-height: inherit;
  font-family: inherit;
}

.link-btn:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
}

.map-view {
  display: none;
  height: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.map-view.is-visible {
  display: block;
}

.map-view .leaflet-popup-content {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.stats-page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.stats-page h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.company-grid {
  display: block;
}

.company-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 8px;
  background: #fff;
}

.company-card:hover {
  background: #fafafa;
}

.company-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  flex: 1;
}

.company-card-name {
  font-weight: 500;
  font-size: 14px;
}

.company-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.company-card-meta strong {
  color: var(--ink);
  font-weight: 400;
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.geo-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.geo-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.geo-count {
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

.geo-bar {
  display: block;
  height: 3px;
  margin-top: 5px;
  background: #f5f5f5;
  overflow: hidden;
}

.geo-bar span {
  display: block;
  height: 100%;
  background: #bbb;
}

.placeholder-card {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.overview-card {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px 14px 0;
}

.overview-card:nth-child(odd) {
  padding-right: 16px;
}

.overview-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.overview-card .value {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.overview-card .hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.world-map {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  min-height: 400px;
}

.world-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-legend {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.company-page {
  width: min(1040px, calc(100% - 32px));
}

.company-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.company-hero .company-card-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.company-hero h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.company-hero .page-lead {
  margin: 2px 0 0;
}

.section-title {
  margin: 30px 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cat-list {
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}

.similar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.similar-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
}

.similar-list a:hover {
  background: #fafafa;
}

.similar-list .company-card-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.back-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
}

.back-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .logo-card {
    width: 100%;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-link {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .right-controls {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .filter-q,
  .filter-loc {
    flex: 1 1 100%;
  }
}

@media (max-width: 720px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .stats-page {
    width: calc(100% - 24px);
    padding-top: 16px;
  }

  button.nav-link {
    appearance: none;
  }

  .search-layout {
    padding: 12px 0 24px;
  }

  .filter-bar {
    padding: 0;
  }

  .results-wrap {
    padding: 0;
  }

  .jobs-table thead {
    display: none;
  }

  .jobs-table,
  .jobs-table tbody,
  .jobs-table tr,
  .jobs-table td {
    display: block;
    width: 100%;
  }

  .jobs-table tr {
    padding: 10px 6px 12px;
    border-bottom: 1px solid var(--line);
  }

  .jobs-table td {
    border: 0;
    padding: 2px 6px;
    max-width: none;
  }

  .jobs-table td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 92px;
    color: var(--muted-2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 8px;
  }

  .jobs-table td.company-td[data-label]::before,
  .jobs-table td.title-td[data-label]::before,
  .jobs-table td.actions-td[data-label]::before {
    display: none;
  }

  .title-cell {
    max-width: none;
  }
}
