:root {
  color-scheme: light;
  --text: #111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --hover: #f5f5f5;
  --accent: #0b6bcb;
  --accent-soft: #e8f1fb;
  --touch: 40px;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  height: 100dvh;
}
.no-map .layout { grid-template-columns: minmax(0, 640px); justify-content: center; }
.no-map .map { display: none; }

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
}
.panel-head { padding: 16px 16px 8px; }
.head-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.head-cta {
  flex: none;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.head-cta:hover { background: var(--hover); text-decoration: none; }
.brand { font-size: 18px; font-weight: 650; line-height: 1.3; }
.brand a { color: inherit; }
.content { flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid var(--line); }
.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 16px;
  border-top: 1px solid var(--line);
}
.foot-links { display: flex; gap: 16px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 32px; }

/* Companies | Jobs */
.switch { display: flex; gap: 4px; padding: 0 16px 10px; }
.switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  font-weight: 550;
  color: var(--muted);
  border-radius: 999px;
}
.switch a:hover { color: var(--text); background: var(--hover); text-decoration: none; }
.switch a[aria-current="page"] { color: var(--text); background: var(--hover); }
.tab-count { font-size: 12px; font-weight: 600; color: var(--muted); }

/* The filters and the switch belong to the lists only. */
[data-view="company"] .switch, [data-view="company"] .filters,
[data-view="missing"] .switch, [data-view="missing"] .filters { display: none; }

.filters { display: grid; gap: 8px; padding: 0 16px 12px; }
.filters[hidden], .switch[hidden] { display: none; }
.filters-row { display: flex; align-items: center; gap: 12px; }
input[type="search"], select {
  width: 100%;
  min-width: 0;
  height: var(--touch);
  padding: 0 10px;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
select { flex: 1; }
.check { display: flex; align-items: center; gap: 6px; min-height: var(--touch); white-space: nowrap; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; }

.button {
  min-height: var(--touch);
  padding: 0 14px;
  font: inherit;
  font-weight: 550;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.button:hover { background: var(--hover); }

/* A logo is its initial with the icon on top; while the icon loads, or without one, the initial shows. */
.logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.logo > *, .pin > .initial, .pin > img { grid-area: 1 / 1; }
.logo img { display: block; width: 20px; height: 20px; background: #fff; }
.initial { font-size: 14px; font-weight: 600; color: var(--muted); }

.list { margin: 0; padding: 0; list-style: none; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  color: inherit;
  border-bottom: 1px solid var(--line);
}
.row:hover { background: var(--hover); text-decoration: none; }
.row-text { flex: 1; min-width: 0; }
.row-name { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.row.featured { background: #fafcff; box-shadow: inset 3px 0 0 var(--accent); }
.row.featured:hover { background: #f1f6fd; }
.badge {
  flex: none;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-accent, var(--accent));
  background: var(--accent-soft);
  border-radius: 999px;
  vertical-align: middle;
}
.row-desc {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Open positions are blue everywhere; black numbers on the map count companies. */
.count {
  flex: none;
  min-width: 22px;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}
.empty { display: grid; justify-items: start; gap: 12px; padding: 24px 16px; color: var(--muted); }
.empty .view-title { padding: 0; }

.about { display: grid; gap: 8px; padding: 20px 16px 24px; }
.about h2 { font-size: 13px; font-weight: 600; color: var(--text); }

.view-title { padding: 14px 16px 6px; font-size: 15px; font-weight: 650; }

.detail { padding: 4px 16px 24px; }
.detail.featured { border-top: 3px solid var(--brand-accent, var(--accent)); }
.back { display: inline-flex; align-items: center; min-height: var(--touch); font-size: 14px; }
.detail-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.detail-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 20px; line-height: 1.25; }
.detail-head h1:focus { outline: none; }
.tagline { margin-top: 2px; font-size: 14px; color: var(--muted); }
.profile-about { display: grid; gap: 8px; }
.facts { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; margin-top: 6px; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 8px 0; }
.links a { display: inline-flex; align-items: center; min-height: var(--touch); }
.links .cta-link {
  min-height: 36px;
  padding: 0 14px;
  font-weight: 600;
  color: #fff;
  background: var(--brand-accent, var(--accent));
  border-radius: 6px;
}
.links .cta-link:hover { opacity: 0.92; text-decoration: none; }
.detail h2 { margin: 16px 0 6px; font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pills li { padding: 2px 9px; font-size: 13px; background: #f7f7f7; border: 1px solid var(--line); border-radius: 999px; }
.perks { margin: 0; padding-left: 18px; }
.perks li { margin-bottom: 4px; }
.cover { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; margin: 6px 0 12px; border: 1px solid var(--line); }
.investors { margin-top: 4px; }
.policy-box { margin: 10px 0; padding: 10px 12px; font-size: 13px; background: #f8fafc; border-left: 3px solid var(--brand-accent, var(--accent)); border-radius: 4px; }
.founder-note { margin: 10px 0; padding: 10px 12px; font-size: 13px; font-style: italic; color: var(--text); background: #fafafa; border: 1px solid var(--line); border-radius: 6px; }
.founders { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.founders li { font-size: 14px; }
.process { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.open-app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 14px; background: #fafcff; border: 1px solid var(--line); border-radius: 8px; }
.open-app .button { display: inline-flex; align-items: center; text-decoration: none; }
.job-featured { display: flex; align-items: flex-start; gap: 10px; }
.job-featured .logo { width: 28px; height: 28px; margin-top: 2px; }
.job-featured .logo img { width: 16px; height: 16px; }
.job-body { flex: 1; min-width: 0; }
.claim-box {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 14px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.button-accent {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.button-accent:hover { background: #0959ab; text-decoration: none; }

/* Click to copy the address. */
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 6px;
  margin: 0 -6px;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: copy;
}
.copy:hover { color: var(--text); background: var(--hover); }
.copy:hover .copy-text { text-decoration: underline dotted; text-underline-offset: 3px; }
.copy-icon { position: relative; flex: none; width: 12px; height: 12px; opacity: 0.55; }
.copy-icon::before, .copy-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.copy-icon::before { top: 0; left: 0; }
.copy-icon::after { right: 0; bottom: 0; background: #fff; }
.copy:hover .copy-icon, .copy.copied .copy-icon { opacity: 1; }
.copy.copied { color: var(--accent); background: var(--accent-soft); }
.copy-status { font-weight: 600; color: var(--accent); }
.copy-status:empty { display: none; }

/* A job row is one big link to the posting; the company name inside stays its own link. */
.jobs { margin: 0; padding: 0; list-style: none; }
.job { position: relative; padding: 10px 0; border-top: 1px solid var(--line); }
.content > .jobs .job { padding: 10px 16px; }
.job:hover { background: var(--hover); }
.job-link { font-weight: 550; }
.job-link::after { content: ""; position: absolute; inset: 0; }
.job-company { position: relative; z-index: 1; font-weight: 550; }
.job-meta { margin-top: 2px; }
.new {
  margin-left: 6px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 4px;
}

.map { min-height: 0; background: #f2f2f0; }

/* MapLibre places these itself (position: absolute plus a transform). Setting position,
   transform, top or left on them here moves every pin off its place on the map. */
.pin, .cluster {
  display: grid;
  place-items: center;
  padding: 0;
  font: inherit;
  border-radius: 50%;
  cursor: pointer;
}
.pin {
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid #cfcfcf;
  box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
}
.pin img { width: 20px; height: 20px; border-radius: 4px; background: #fff; }
.pin .count { position: absolute; top: -7px; right: -9px; min-width: 18px; padding: 0 4px; font-size: 11px; line-height: 16px; }
.pin .label {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  translate: -50% 0;
  display: none;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
  pointer-events: none;
}
.pin:hover .label, .pin:focus-visible .label, .pin.selected .label, .pin.hovered .label { display: block; }
.pin.featured { border: 2px solid var(--accent); background: #fff; box-shadow: 0 2px 6px rgb(11 107 203 / 35%); z-index: 1; }
.pin.selected { border: 2px solid var(--accent); }
.pin.hovered { border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgb(11 107 203 / 25%); }
.cluster {
  width: 38px;
  height: 38px;
  font-size: 14px;
  font-weight: 650;
  color: #fff;
  background: var(--text);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 35%);
}
.cluster.hovered { background: var(--accent); box-shadow: 0 0 0 4px rgb(11 107 203 / 25%); }
.pin:hover, .pin:focus-visible, .pin.selected, .pin.hovered, .cluster.hovered { z-index: 2; }

/* The credit line must stay visible, but only its links should catch taps, not the pins under it. */
.maplibregl-ctrl.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner { pointer-events: none; }
.maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner a { pointer-events: auto; }

@media (max-width: 760px) {
  .layout { display: flex; flex-direction: column; height: auto; }
  .map { order: -1; flex: none; height: 42dvh; }
  .panel { border-right: 0; }
  .content { overflow: visible; }
  input[type="search"], select { font-size: 16px; }
  .maplibregl-ctrl-group button { width: 36px; height: 36px; }
}

/* Plain text pages, such as /privacy/ and /for-companies/. */
.page { height: auto; }
.prose { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
.prose-wide { max-width: 920px; }
.prose h1 { margin: 16px 0 12px; font-size: 24px; }
.prose h2 { margin: 24px 0 8px; font-size: 16px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 28px; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.plan h2 { margin: 0; font-size: 16px; }
.plan ul { padding-left: 18px; flex: 1; }
.plan .button { align-self: flex-start; display: inline-flex; align-items: center; text-decoration: none; }
.plan-featured { border-color: var(--accent); background: #fafcff; box-shadow: 0 2px 10px rgb(11 107 203 / 8%); }
.plan-price { margin: 0; font-size: 22px; font-weight: 700; }
.plan-price span { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-regular { text-decoration: line-through; margin-left: 4px; }
.steps { padding-left: 20px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
.stat-card { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bar-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.bar-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 24px; }
.tag-cloud a { padding: 3px 10px; font-size: 13px; color: var(--text); background: #f7f7f7; border: 1px solid var(--line); border-radius: 999px; }
.tag-cloud a:hover { background: var(--hover); text-decoration: none; }
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
