/* Layout: a working directory rail beside a full-height map of the island. */
:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --fg: #111111;
  --muted: #5c5c5c;
  --line: #e1e1e1;
  --accent: #111111;
  --accent-fg: #ffffff;
  --red: #e5383b;
  --on-red: #000000;
  --shadow: 0 10px 30px rgb(0 0 0 / .16);
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --surface: #181818;
    --surface-2: #262626;
    --fg: #f5f5f5;
    --muted: #b3b3b3;
    --line: #333333;
    --accent: #f5f5f5;
    --accent-fg: #111111;
    --red: #ff5a5f;
    --on-red: #111111;
    --shadow: 0 10px 30px rgb(0 0 0 / .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.45 var(--body); overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }

.app { display: grid; grid-template-columns: 372px minmax(0, 1fr); height: 100dvh; }
.panel { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: max(16px, env(safe-area-inset-top)) 16px 0 max(16px, env(safe-area-inset-left)); background: var(--surface); border-right: 1px solid var(--line); z-index: 2; }
.brand-row, .summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -.02em; }
.brand svg { flex: none; width: 27px; height: 27px; }
.brand .logo-p { fill: var(--fg); }
.brand .logo-dot { fill: var(--red); }

.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 600; text-decoration: none; color: var(--fg); cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.1); }
.link-btn { padding: 4px 0; border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; }
.icon-btn { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--surface-2); font-size: 20px; line-height: 1; cursor: pointer; }

.search input, select, .form-grid input, textarea { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.filters summary { cursor: pointer; font-weight: 600; }
#filter-count { color: var(--accent); }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.filter-grid label, .form-grid label, #entry-wrap label { display: grid; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 600; min-width: 0; }
.filter-grid .toggle { display: flex; align-items: center; gap: 7px; color: var(--fg); font-size: 13px; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }

#summary { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.segmented { display: none; padding: 2px; border-radius: 8px; background: var(--surface-2); }
.segmented button { min-height: 30px; padding: 3px 12px; border: 0; border-radius: 6px; background: none; font-weight: 600; cursor: pointer; }
.segmented [aria-pressed="true"] { background: var(--surface); }

.results { flex: 1; min-height: 0; margin: 0 -16px; padding: 0 0 12px; overflow-y: auto; list-style: none; border-top: 1px solid var(--line); }
.result { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.result:hover, .result[aria-current="true"] { background: var(--surface-2); }
.result strong { display: block; font-weight: 600; }
.result small { display: block; color: var(--muted); font-size: 12.5px; }
.mono { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--c, var(--accent)); color: #fff; font: 700 14px/1 var(--display); }
.empty { padding: 28px 16px; color: var(--muted); text-align: center; }

.map-wrap { position: relative; min-width: 0; min-height: 0; }
#map { position: absolute; inset: 0; z-index: 0; background: var(--bg); font-family: var(--body); }
.pin { display: grid !important; place-items: center; border: 2px solid #fff; border-radius: 9px; background: var(--c); color: #fff; font: 700 12px/1 var(--display); box-shadow: 0 3px 9px rgb(0 0 0 / .4); transition: transform .12s; }
.pin:hover, .pin.active { transform: scale(1.18); }
.pin.active { outline: 3px solid var(--red); }
.cluster { display: grid !important; place-items: center; border: 3px solid var(--red); border-radius: 50%; background: var(--fg); color: var(--surface); font: 700 14px/1 var(--display); box-shadow: 0 3px 10px rgb(0 0 0 / .4); }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-bar a { background: var(--surface); color: var(--fg); border-color: var(--line); }
.leaflet-bar a:hover { background: var(--surface-2); color: var(--fg); }
.leaflet-control-attribution { background: var(--surface) !important; color: var(--muted); }

.detail { position: absolute; top: 16px; right: max(16px, env(safe-area-inset-right)); z-index: 500; display: grid; gap: 10px; width: min(360px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 16px; overflow-y: auto; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.detail-head { display: grid; grid-template-columns: 38px minmax(0, 1fr) 32px; gap: 10px; align-items: center; }
.detail h2 { margin: 0; font: 700 21px/1.1 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.detail p { margin: 0; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; margin: 0; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { flex: 1 1 auto; }
.sources { color: var(--muted); font-size: 12.5px; }

dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 18px; border: 0; border-radius: 12px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(0 0 0 / .55); }
#submit-form, #entry-wrap { display: grid; gap: 12px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { margin: 0; font: 700 22px/1.1 var(--display); }
#submit-form p { margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .wide { grid-column: 1 / -1; }
textarea { font: 12.5px/1.45 ui-monospace, Menlo, monospace; resize: vertical; }

.pin { position: relative; }
.pin-jobs { position: absolute; top: -8px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border: 1.5px solid #fff; border-radius: 9px; background: var(--red); color: var(--on-red); font: 700 10px/1 var(--body); }
.jobs-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--fg); font-weight: 600; text-decoration: none; }
.jobs-link b { color: var(--accent); font-variant-numeric: tabular-nums; }
.detail-jobs { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.detail-jobs a { overflow-wrap: anywhere; }

body.jobs-page { height: auto; min-height: 100%; overflow: auto; }
.jobs-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: max(10px, env(safe-area-inset-top)) 10px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); background: var(--surface); border-bottom: 1px solid var(--line); }
.jobs-main { display: grid; gap: 16px; width: 100%; max-width: 1040px; margin: 0 auto; padding-block: 28px 48px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.jobs-intro h1 { margin: 0 0 4px; font: 700 clamp(30px, 5vw, 44px)/1.05 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.jobs-intro p { margin: 0; }
.jobs-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.jobs-filters label { display: grid; gap: 3px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.jobs-filters input { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.jobs-filters select { background: var(--surface); color: var(--fg); }
.jobs-search { grid-column: 1 / -1; }
.funding-filters .jobs-search { grid-column: 1 / -1; }
.jobs-filters label:nth-child(n+2) { grid-column: span 1; }
.jobs-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jobs-count-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.jobs-count-row p { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.job-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.job-body { display: grid; gap: 3px; min-width: 0; }
.job h2 { margin: 0; font: 600 16.5px/1.25 var(--body); overflow-wrap: anywhere; }
.job p { margin: 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.tags:empty { display: none; }
.tags span { padding: 1px 7px; border-radius: 5px; background: var(--surface-2); color: var(--fg); font-size: 12px; font-weight: 500; }
.job-side { display: grid; justify-items: end; gap: 5px; }
.job-side small { color: var(--muted); font-size: 12px; white-space: nowrap; }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-links .jobs-link { font-size: 13.5px; }
.top-nav { display: flex; gap: 6px; }
.funding-line { font-size: 13.5px; }
.funding-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.funding-filters label { display: grid; gap: 3px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.funding-filters input { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.funding-filters select { background: var(--surface); color: var(--fg); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { display: grid; gap: 2px; min-width: 0; padding: 14px 14px 14px 0; }
.stat + .stat { padding-left: 14px; border-left: 1px solid var(--line); }
.stat span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat strong { font: 700 clamp(24px, 3.4vw, 34px)/1.05 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat small { color: var(--muted); font-size: 12px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.chart { display: grid; gap: 10px; min-width: 0; margin: 0; }
.chart-wide { grid-column: 1 / -1; }
.chart figcaption { font-weight: 600; }
.columns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; height: 210px; border-bottom: 1px solid var(--line); }
.column { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 4px; min-width: 0; height: calc(100% + 24px); padding: 0; border: 0; background: none; cursor: pointer; }
.columns { margin-bottom: 24px; }
.column-value { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.column-track { display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.column-bar { width: min(64px, 70%); border-radius: 4px 4px 0 0; background: var(--accent); }
.column:hover .column-bar, .column[aria-pressed="true"] .column-bar { background: var(--red); }
.column-label { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.hbars { display: grid; gap: 7px; }
.hbar { display: grid; grid-template-columns: 94px minmax(0, 1fr) 62px; gap: 8px; align-items: center; font-size: 13px; }
.hbar-label { overflow-wrap: anywhere; }
.hbar-track { height: 12px; }
.hbar-track span { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--accent); }
.hbar-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.method { margin: 0; font-size: 12.5px; }
.section-title { margin: 0; font: 700 22px/1.1 var(--display); }
.round-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.round { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(130px, auto); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.round h3 { margin: 0; font: 600 16.5px/1.25 var(--body); }
.round h3 a { color: var(--fg); text-decoration: none; }
.round h3 a:hover { text-decoration: underline; }
.round p { margin: 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.round .round-note { font-size: 12.5px; }
.round-side { display: grid; justify-items: end; align-content: start; gap: 2px; text-align: right; }
.round-side strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.round-side small { color: var(--muted); font-size: 12px; }
.round-side a { font-size: 12.5px; font-weight: 600; }

@media (max-width: 760px) {
  .funding-filters { grid-template-columns: 1fr 1fr; }
  .funding-filters .jobs-search { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .round { grid-template-columns: 38px minmax(0, 1fr); }
  .round-side { grid-column: 2; justify-items: start; text-align: left; }
  .jobs-filters { grid-template-columns: 1fr 1fr; }
  .job { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .job-side { grid-column: 2; display: flex; align-items: center; justify-content: space-between; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .panel { padding-right: max(16px, env(safe-area-inset-right)); padding-bottom: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .segmented { display: inline-flex; }
  .results { display: none; }
  body[data-view="list"] .app { grid-template-rows: minmax(0, 1fr); }
  body[data-view="list"] .panel { padding-bottom: 0; border-bottom: 0; }
  body[data-view="list"] .results { display: block; }
  body[data-view="list"] .map-wrap { display: none; }
  .detail { top: auto; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); left: 8px; width: auto; max-height: 68%; }
}
@media (max-width: 420px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-color-scheme: dark) { .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.brand small.brand-country { align-self: flex-end; margin-left: 2px; padding-bottom: 1px; color: var(--muted); font: 600 12px/1 var(--body); letter-spacing: 0; }

body.world-page { overflow: hidden; }
.world { position: relative; height: 100dvh; }
#world-map { position: absolute; inset: 0; z-index: 0; background: var(--bg); font-family: var(--body); }
.world-card { position: absolute; z-index: 1; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); bottom: 16px; display: flex; flex-direction: column; gap: 14px; width: min(410px, calc(100% - 32px)); padding: 22px; overflow-y: auto; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.world-card h1 { margin: 10px 0 0; font: 700 clamp(32px, 4vw, 44px)/1.02 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.world-card > p { margin: 0; }
.country-live { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.country-live-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.country-live h2 { margin: 0; font: 700 22px/1.1 var(--display); }
.live-pill { padding: 2px 8px; border-radius: 6px; background: var(--red); color: var(--on-red); font-size: 12px; font-weight: 600; }
.world-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.world-stats div { display: grid; gap: 1px; min-width: 0; }
.world-stats dt { order: 2; color: var(--muted); font-size: 12px; }
.world-stats dd { margin: 0; font: 700 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.country-next { display: grid; gap: 7px; }
.country-next h2 { margin: 0; font-size: 14px; font-weight: 600; }
.country-next ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.country-next li { padding: 3px 9px; border-radius: 6px; background: var(--surface-2); font-size: 13px; font-weight: 500; }
.country-next p { margin: 0; font-size: 13px; }
.country-pin { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid #fff; border-radius: 50%; background: var(--muted); color: #fff; font: 700 11px/1 var(--display); box-shadow: 0 3px 9px rgb(0 0 0 / .35); opacity: .78; }
.country-pin.is-live { border: 3px solid var(--red); background: #111111; font-size: 15px; opacity: 1; cursor: pointer; }

@media (max-width: 760px) {
  body.world-page { overflow: auto; }
  .world { display: flex; flex-direction: column; height: auto; min-height: 100dvh; }
  #world-map { position: relative; inset: auto; order: 2; flex: 1 0 300px; }
  .world-card { position: relative; inset: auto; order: 1; width: 100%; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left)); overflow: visible; border-radius: 0; box-shadow: none; }
}

body.map-page { overflow: hidden; }
.stage { position: relative; height: 100dvh; overflow: hidden; background: var(--bg); }
.map-page #map { position: absolute; inset: 0; z-index: 0; }
.map-page .leaflet-tile-pane, .world-page .leaflet-tile-pane { filter: saturate(.72) brightness(1.05) contrast(.92); }
.grid-view { display: none; position: absolute; inset: 0; z-index: 1; padding-block: 132px 84px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); overflow-y: auto; background: var(--bg); }
body[data-view="grid"] .grid-view { display: block; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 12px; max-width: 1280px; margin: 0 auto; padding: 0; list-style: none; }
.card-grid > li { display: flex; min-width: 0; }
.startup-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-content: start; gap: 10px 12px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; }
.startup-card:hover { border-color: var(--accent); }
.startup-card strong { display: block; font: 700 16px/1.2 var(--display); overflow-wrap: anywhere; }
.startup-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.startup-card p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.startup-card .card-job { grid-column: 1 / -1; justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--red); color: var(--on-red); font-size: 12px; font-weight: 600; }

.float-top { position: absolute; z-index: 800; top: max(14px, env(safe-area-inset-top)); left: 50%; display: grid; justify-items: center; gap: 6px; width: min(790px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none; }
.float-top > * { pointer-events: auto; }
.topbar { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 54px; padding: 7px 8px 7px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.topbar .brand { flex: none; font-size: 19px; }
.topbar .brand svg { width: 24px; height: 24px; }
.top-search { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); }
.top-search svg, .view-toggle svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top-search input { width: 100%; min-width: 0; height: 36px; border: 0; outline-offset: 0; background: transparent; color: var(--fg); }
.view-toggle { display: flex; flex: none; padding: 2px; border-radius: 9px; background: var(--surface-2); }
.view-toggle button { display: grid; place-items: center; width: 34px; height: 32px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.view-toggle [aria-pressed="true"] { background: var(--surface); color: var(--fg); }
.pill-btn { flex: none; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font-weight: 600; cursor: pointer; }
.pill-btn:hover { background: var(--surface-2); }
.pill-primary { border-color: var(--accent); background: var(--accent); color: var(--accent-fg); }
.pill-primary:hover { background: var(--accent); filter: brightness(1.12); }
#filter-count { margin-left: 4px; color: var(--red); }
#filter-count:empty { display: none; }
.hiring-bar { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 8px 4px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 4px 14px rgb(0 0 0 / .14); color: var(--muted); font-size: 13px; white-space: nowrap; }
.hiring-bar b { color: var(--fg); font-variant-numeric: tabular-nums; }
.switch { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; width: 30px; height: 17px; border-radius: 9px; background: var(--line); transition: background .12s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); transition: transform .12s; }
.switch input:checked + i { background: var(--red); }
.switch input:checked + i::after { transform: translateX(13px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-pop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; width: min(560px, 100%); padding: 13px; border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.filter-pop > label { display: grid; gap: 3px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.filter-pop .toggle { display: flex; grid-column: span 2; align-items: center; gap: 7px; color: var(--fg); font-size: 13px; }
.filter-pop .link-btn { justify-self: end; }

.logo-pin { position: relative; display: block; width: 44px; height: 44px; border: 2px solid #fff; border-radius: 11px; background: var(--c); color: #fff; box-shadow: 0 3px 10px rgb(0 0 0 / .34); transition: transform .12s; cursor: pointer; }
.logo-pin:hover, .logo-pin.active { z-index: 2; transform: scale(1.14); }
.logo-pin.active { outline: 3px solid var(--red); }
.logo-fallback { position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px/1 var(--display); }
.logo-img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; border-radius: 9px; background: #fff; object-fit: contain; }
.job-tag { position: absolute; left: 50%; bottom: -10px; z-index: 3; padding: 2px 6px; border: 1px solid #fff; border-radius: 7px; background: #111111; color: #fff; font: 700 9.5px/1.15 var(--body); white-space: nowrap; transform: translateX(-50%); }
.job-tag::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: #ff5a5f; vertical-align: 1px; }
.mono-logo { position: relative; display: block; width: 46px; height: 46px; border-radius: 11px; background: var(--c); color: #fff; overflow: hidden; }
.map-page .cluster { border: 2px solid #fff; border-radius: 12px; background: #111111; color: #fff; }

.pin-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.pin-popup .leaflet-popup-content { width: min(292px, 72vw) !important; margin: 0; font: 14px/1.4 var(--body); }
.pin-popup .leaflet-popup-tip { background: var(--surface); }
.popup-card { display: grid; gap: 8px; padding: 15px; }
.popup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.popup-head h3 { margin: 0; font: 700 18px/1.15 var(--display); overflow-wrap: anywhere; }
.popup-jobs { flex: none; padding: 2px 7px; border-radius: 7px; background: var(--red); color: var(--on-red); font-size: 11px; font-weight: 700; white-space: nowrap; }
.popup-card p { margin: 0 !important; color: var(--muted); }
.popup-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; }
.popup-more { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; }

.map-page .detail { z-index: 850; top: 132px; right: max(16px, env(safe-area-inset-right)); max-height: calc(100% - 196px); }
.detail-logo { position: relative; display: block; width: 38px; height: 38px; border-radius: 9px; background: var(--c); color: #fff; overflow: hidden; }
.jobs-float, .count-float, .float-btn { background: var(--surface); box-shadow: 0 5px 18px rgb(0 0 0 / .2); }
.jobs-float { position: absolute; z-index: 780; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px 7px 5px 15px; border-radius: 13px; color: var(--fg); font-weight: 600; text-decoration: none; white-space: nowrap; transform: translateX(-50%); }
.jobs-float i, .count-float i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.jobs-float em { padding: 5px 10px; border-radius: 9px; background: var(--surface-2); font-size: 13px; font-style: normal; }
body[data-view="grid"] .tools-float { display: none; }
.count-float { position: absolute; z-index: 780; left: max(14px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 12px; border-radius: 11px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.count-float a { padding-left: 8px; border-left: 1px solid var(--line); color: var(--fg); font-weight: 600; text-decoration: none; }
.count-float a b { color: var(--accent); }
.tools-float { position: absolute; z-index: 780; right: 58px; bottom: max(22px, env(safe-area-inset-bottom)); display: flex; gap: 6px; }
.float-btn { min-height: 34px; padding: 5px 11px; border: 0; border-radius: 10px; color: var(--fg); font-size: 13px; font-weight: 600; cursor: pointer; }
.float-btn:hover { background: var(--surface-2); }
.map-page .leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-bottom: 22px; }

@media (prefers-color-scheme: dark) {
  .map-page .leaflet-tile-pane, .world-page .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) saturate(.68) brightness(.95) contrast(.92); }
  .logo-pin, .job-tag, .map-page .cluster { border-color: #dfe8f1; }
}
@media (max-width: 1040px) {
  .count-float { bottom: 76px; }
  .tools-float { right: 12px; bottom: 112px; flex-direction: column; align-items: flex-end; }
}
@media (max-width: 760px) {
  .float-top { top: max(8px, env(safe-area-inset-top)); width: calc(100% - 16px); }
  .topbar { flex-wrap: wrap; gap: 6px; padding: 8px; }
  .topbar .brand { order: 1; flex: 1; }
  #open-submit { order: 2; }
  .top-search { order: 3; flex: 1 1 100px; padding-left: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
  .view-toggle { order: 4; }
  #filter-btn { order: 5; }
  .hiring-bar { font-size: 12px; }
  .filter-pop { grid-template-columns: 1fr 1fr; }
  .grid-view { padding-block: 168px 124px; }
  .map-page .detail { top: auto; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); left: 8px; width: auto; max-height: 70%; }
  .jobs-float { bottom: 22px; }
  .count-float { left: 8px; bottom: 72px; }
  .tools-float { bottom: 150px; right: 10px; }
}

.stage { --promo: 96px; }
.stage.no-promo { --promo: 0px; }
.map-page .jobs-float { bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--promo)); }
.map-page .grid-view { padding-bottom: calc(84px + var(--promo)); }
.promo-strip { position: absolute; z-index: 790; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 5px; max-width: calc(100% - 16px); padding: 7px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); transform: translateX(-50%); }
.promo-slots { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.promo-slots::-webkit-scrollbar { display: none; }
.promo-slot { position: relative; display: grid; flex: none; place-items: center; align-content: center; gap: 2px; width: 88px; height: 62px; padding: 4px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); text-align: center; cursor: pointer; }
.promo-slot:hover { border-color: var(--accent); background: var(--surface-2); }
.promo-slot b { font-size: 11.5px; line-height: 1.15; }
.promo-slot small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.promo-slot.is-featured { border-color: var(--red); }
.promo-slot.is-featured b { color: var(--fg); }
.promo-slot.is-filled { border-style: solid; }
.promo-slot .promo-logo { position: relative; display: block; width: 28px; height: 28px; overflow: hidden; border-radius: 7px; background: var(--c); color: #fff; }
.promo-slot .promo-logo .logo-fallback { font-size: 10px; }
.promo-slot .promo-logo .logo-img { padding: 2px; border-radius: 6px; }
.promo-slot .promo-name { display: block; max-width: 78px; overflow: hidden; font-size: 11px; font-weight: 600; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.promo-slot .promo-label { color: var(--muted); font-size: 11px; line-height: 1; }
.promo-hide { flex: none; width: 26px; height: 42px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 19px; cursor: pointer; }
.promo-hide:hover { background: var(--surface-2); color: var(--fg); }
.count-float button { padding: 0 0 0 8px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--fg); font-weight: 600; cursor: pointer; }
.logo-pin.promoted { border-color: var(--red); box-shadow: 0 0 0 2px #fff, 0 4px 12px rgb(0 0 0 / .38); }
.sponsored-tag { display: inline-block; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; }
.startup-card.promoted { border-color: var(--red); }
.promo-dialog-body { display: grid; gap: 12px; }
.promo-dialog-body > p { margin: 0; }
.promo-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.promo-plan { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); text-align: left; cursor: pointer; }
.promo-plan[aria-checked="true"] { border-color: var(--red); background: var(--surface-2); }
.promo-plan strong { font-size: 15px; }
.promo-price { font: 700 25px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.promo-price small { color: var(--muted); font: 500 13px/1 var(--body); }
.promo-plan ul { display: grid; gap: 2px; margin: 2px 0 0; padding-left: 16px; color: var(--muted); font-size: 12.5px; }
.promo-left { color: var(--muted); font-size: 12px; font-weight: 600; }
.promo-note { color: var(--muted); font-size: 13px; }
.promo-note:empty { display: none; }

@media (max-width: 1040px) {
  .map-page .count-float { bottom: calc(16px + var(--promo)); }
  .map-page .tools-float { bottom: calc(16px + var(--promo)); }
  .map-page .leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-bottom: calc(60px + var(--promo)); }
}
@media (max-width: 760px) {
  .stage { --promo: 76px; }
  .promo-strip { left: 8px; right: 8px; bottom: max(6px, env(safe-area-inset-bottom)); max-width: none; padding: 5px; transform: none; }
  .promo-slots { flex: 1; }
  .promo-slot { width: 82px; height: 56px; }
  .map-page .jobs-float { bottom: calc(10px + var(--promo)); }
  .map-page .count-float { bottom: calc(60px + var(--promo)); }
  .map-page .tools-float { right: 10px; bottom: calc(124px + var(--promo)); }
  .map-page .leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-bottom: calc(58px + var(--promo)); margin-right: 10px; }
  .map-page .grid-view { padding-bottom: calc(120px + var(--promo)); }
  .promo-plans { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1040px) {
  .map-page .tools-float { right: 10px; bottom: calc(150px + var(--promo)); }
}

.promo-field { display: grid; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 600; }
.promo-free .promo-slot small { color: var(--fg); font-weight: 600; }

.growth-main { max-width: 1040px; }
.growth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding-block: 22px 32px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); border-top: 1px solid var(--line); background: var(--surface); font-size: 13.5px; }
.growth-main section { display: grid; gap: 10px; min-width: 0; }
.profile { display: grid; gap: 20px; width: 100%; max-width: 780px; min-width: 0; }
.profile-head { display: flex; align-items: center; gap: 15px; min-width: 0; }
.profile-head > div { min-width: 0; }
.profile-logo { position: relative; display: block; flex: none; width: 72px; height: 72px; overflow: hidden; border-radius: 15px; background: var(--c); color: #fff; }
.profile-logo .logo-fallback { font-size: 24px; }
.profile-logo .logo-img { padding: 6px; border-radius: 14px; }
.profile h1 { margin: 0; font: 700 clamp(30px, 5vw, 44px)/1.05 var(--display); letter-spacing: -.025em; overflow-wrap: anywhere; }
.profile-head p { margin: 4px 0 0; }
.profile-lead { margin: 0; font-size: 18px; line-height: 1.45; }
.profile-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.profile-facts div { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 12px 12px 12px 0; }
.profile-facts div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.profile-facts dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.profile-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.profile h2, .share-panel h2 { margin: 0; font: 700 21px/1.15 var(--display); }
.profile-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.profile-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.profile-list li span:last-child { color: var(--muted); }
.link-inline { font-weight: 600; }
.share-panel { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.share-panel p { margin: 0; }
.share-panel .actions .btn { flex: 0 1 auto; }
.badge-preview { display: block; max-width: 100%; height: auto; }
.embed-field { display: grid; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 600; }
.embed-field textarea { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: 12px/1.45 ui-monospace, Menlo, monospace; resize: vertical; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dir-grid > li { display: flex; min-width: 0; }
.dir-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-content: start; gap: 10px 12px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); text-decoration: none; }
.dir-card:hover { border-color: var(--accent); }
.dir-card strong { display: block; font: 700 16px/1.2 var(--display); overflow-wrap: anywhere; }
.dir-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.dir-card p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.dir-card .card-job { grid-column: 1 / -1; justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--red); color: var(--on-red); font-size: 12px; font-weight: 600; }
.chip-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip-links a { display: block; padding: 4px 9px; border-radius: 7px; background: var(--surface-2); color: var(--fg); font-size: 13px; font-weight: 500; text-decoration: none; }
.chip-links a:hover { background: var(--line); }
.job-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 680px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.job-form label { display: grid; gap: 3px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.job-form input { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.job-form .wide, .job-form button { grid-column: 1 / -1; }
.job-form p { margin: 0; }
.form-error { color: #b42318; font-size: 13px; font-weight: 600; }
.jobs-post-link { justify-self: start; }
@media (prefers-color-scheme: dark) { .form-error { color: #ff9a8a; } }
@media (max-width: 620px) {
  .profile-facts { grid-template-columns: 1fr 1fr; }
  .profile-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .profile-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .job-form { grid-template-columns: minmax(0, 1fr); }
  .jobs-top .brand-country { display: none; }
  .jobs-top .top-nav .btn { padding-inline: 8px; font-size: 13px; }
}


.map-empty { position: absolute; z-index: 760; top: 50%; left: 50%; display: grid; justify-items: center; gap: 6px; width: min(320px, calc(100% - 32px)); padding: 20px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); text-align: center; transform: translate(-50%, -50%); }
.map-empty strong { font: 700 20px/1.15 var(--display); }
.map-empty span { color: var(--muted); font-size: 14px; }
.map-empty .btn { margin-top: 6px; min-height: 44px; }
body[data-view="grid"] .map-empty { display: none; }
.leaflet-marker-icon:focus { outline: none; }
.leaflet-marker-icon:focus-visible .logo-pin { z-index: 3; outline: 3px solid var(--red); outline-offset: 2px; transform: scale(1.14); }
.leaflet-marker-icon.cluster:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.popup-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.country-pin { background: #5c5c5c; opacity: 1; }
.sources a, .round-side a { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-align: center; }
.growth-foot a, .link-inline { display: inline-flex; align-items: center; min-height: 24px; }
.count-float a, .count-float button { display: inline-flex; align-items: center; min-height: 24px; }
.switch { min-height: 24px; }
#more-btn { display: none; }
.more-menu { position: absolute; right: 0; bottom: calc(100% + 8px); display: grid; width: 214px; padding: 6px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.more-menu p { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.more-menu button, .more-menu a { display: flex; align-items: center; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--fg); font-size: 14px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.more-menu button:hover, .more-menu a:hover { background: var(--surface-2); }

@media (max-width: 768px) {
  .btn, .pill-btn, .float-btn, .icon-btn, .popup-more { min-height: 44px; }
  .icon-btn { min-width: 44px; }
  .brand { min-height: 44px; }
  .search input, select, .form-grid input, .job-form input, .jobs-filters input, .funding-filters input, .top-search input { min-height: 44px; }
  .view-toggle button { width: 44px; height: 40px; }
  .view-toggle { padding: 2px; }
  .switch { min-height: 44px; }
  .hiring-bar { min-height: 44px; padding-block: 0; }
  .filter-pop .toggle { min-height: 44px; }
  .jobs-float { min-height: 48px; }
  .jobs-float em { display: inline-flex; align-items: center; min-height: 38px; }
  .promo-hide { width: 44px; height: 44px; }
  .map-page .leaflet-touch .leaflet-bar a, .world-page .leaflet-touch .leaflet-bar a, .map-page .leaflet-bar a, .world-page .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
  .growth-foot a, .link-inline, .chip-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .sources a, .round-side a { min-width: 44px; min-height: 44px; line-height: 44px; }
  .profile-list li > a { display: inline-flex; align-items: center; min-height: 44px; }
  .column { min-height: 44px; }
}

@media (max-width: 760px) {
  .count-float, #fit-all, #share-map { display: none; }
  #more-btn { display: inline-flex; align-items: center; justify-content: center; }
  .map-page .tools-float, body[data-view="grid"] .tools-float { display: block; right: 8px; bottom: calc(158px + var(--promo)); z-index: 795; }
  body[data-view="grid"] .tools-float { bottom: calc(66px + var(--promo)); }
  .map-page .leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-right: 8px; margin-bottom: calc(50px + var(--promo)); }
  .map-page .jobs-float { left: 8px; bottom: calc(8px + var(--promo)); transform: none; }
  .map-page .grid-view { padding-block: 196px calc(140px + var(--promo)); }
}

@media (max-width: 420px) {
  .jobs-top { flex-wrap: wrap; row-gap: 4px; }
  .jobs-top .brand { flex: 1 0 100%; }
  .jobs-top .top-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .jobs-top .top-nav .btn { padding-inline: 4px; font-size: 13.5px; }
  .topbar .brand { font-size: 18px; }
  .topbar .brand-country { display: none; }
}

.profile-list li > a { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 768px) {
  .btn { min-width: 44px; }
  .view-toggle button { height: 44px; }
  .count-float a, .count-float button { min-height: 44px; }
  .count-float { padding-block: 0; }
}

@media (max-width: 768px) {
  .profile-list li > a { min-height: 44px; }
}
@media (max-width: 760px) {
  .topbar .brand { flex: 1 0 calc(100% - 96px); }
  .top-search { flex: 1 1 80px; }
  .map-page .tools-float { bottom: calc(176px + var(--promo)); }
  body[data-view="grid"] .tools-float { bottom: calc(66px + var(--promo)); right: 8px; }
  .map-page .grid-view { padding-top: 186px; }
}

.float-top { grid-template-columns: minmax(0, 1fr); }
.float-top > * { max-width: 100%; }
.hiring-bar, .filter-pop { justify-self: center; }
@media (max-width: 380px) {
  .hide-xs { display: none; }
  .hiring-bar { gap: 5px; padding-left: 10px; padding-right: 6px; }
  .switch { margin-left: 3px; }
  .topbar { padding-inline: 8px; }
  .top-search { padding-left: 6px; }
  .top-search svg { display: none; }
  .view-toggle button { width: 40px; }
  #filter-btn { padding-inline: 8px; }
}

.count-float a { gap: 4px; }


.legal { display: grid; gap: 12px; width: 100%; max-width: 720px; min-width: 0; }
.legal h1 { margin: 0; font: 700 clamp(32px, 5vw, 46px)/1.05 var(--display); letter-spacing: -.025em; }
.legal h2 { margin: 14px 0 0; font: 700 21px/1.2 var(--display); }
.legal p, .legal ul { margin: 0; line-height: 1.6; }
.legal ul { display: grid; gap: 6px; padding-left: 20px; }
.legal a { overflow-wrap: anywhere; }
.not-found { display: grid; justify-items: center; gap: 10px; width: 100%; max-width: 620px; margin: 0 auto; padding-block: 8vh; text-align: center; }
.not-found-code { margin: 0; color: var(--red); font: 700 22px/1 var(--display); }
.not-found h1 { margin: 0; font: 700 clamp(34px, 6vw, 56px)/1.05 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.not-found p { margin: 0; }
.not-found .actions { justify-content: center; margin-top: 8px; }
.not-found .actions .btn { flex: 0 1 auto; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; font-size: 13px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); }
#submit-form .form-error { margin: 0; }
@media (max-width: 768px) {
  .legal-links a { min-height: 44px; }
  .legal li a, .legal p a { padding-block: 2px; }
}

.leaflet-gl-layer { pointer-events: none; }
body, input, button, select, textarea { font-feature-settings: "cv11", "ss03"; }

@media (max-width: 1040px) {
  .map-page .leaflet-bottom.leaflet-right .leaflet-control-attribution {
    position: absolute;
    right: 62px;
    bottom: calc(66px + var(--promo));
    width: max-content;
    max-width: calc(100vw - 78px);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
    text-align: right;
  }
}
.brand { gap: 7px; font-weight: 600; letter-spacing: -.035em; }
.brand .wordmark b { font-weight: 800; }

/* Warm Glow home page */
.world-page { --headline-red: #d92d32; --glow: #fff5f3; --glow-ring: rgb(229 56 59 / .18); --card-shadow: 0 1px 2px rgb(40 20 20 / .05), 0 14px 30px rgb(40 20 20 / .09); --card-line: #eee9e6; }
@media (prefers-color-scheme: dark) {
  .world-page { --headline-red: #ff5a5f; --glow: #2a1719; --glow-ring: rgb(255 90 95 / .24); --card-shadow: 0 14px 30px rgb(0 0 0 / .45); --card-line: #393434; }
}
.world-page .world-card { gap: 18px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, var(--glow) 0, var(--surface) 46%); }
.world-page .world-card h1 { margin: 0; font: 800 clamp(38px, 11.5vw, 46px)/1.02 var(--display); letter-spacing: -.045em; }
.world-page .headline-accent { color: var(--headline-red); }
.world-page .world-card > p { font-size: 16px; line-height: 1.5; }
.world-page .country-live { gap: 16px; padding: 18px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow); }
.world-page .country-live h2 { font: 800 24px/1.1 var(--display); letter-spacing: -.03em; }
.world-page .live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 0; border-radius: 0; background: none; color: var(--fg); font-size: 12px; font-weight: 700; }
.world-page .live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--glow-ring); }
.world-page .world-stats { grid-template-columns: auto auto auto; justify-content: space-between; gap: 0; }
.world-page .world-stats div { padding-left: 12px; border-left: 1px solid var(--card-line); }
.world-page .world-stats div:first-child { padding-left: 0; border-left: 0; }
.world-page .world-stats dt { white-space: nowrap; }
.world-page .world-stats dd { font: 800 27px/1.1 var(--display); letter-spacing: -.035em; }
.world-page .country-live .btn-primary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; border-radius: 13px; font-size: 16px; font-weight: 700; text-decoration: none; }
.world-page .country-next { gap: 8px; }
.world-page .country-next h2 { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.world-page .country-next li { padding: 6px 11px; border: 1px solid var(--card-line); border-radius: 99px; background: transparent; font-weight: 600; }
@media (max-width: 760px) { .world-page .world-card { padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left)); border-radius: 0; } }
@media (max-width: 360px) {
  .world-page .country-live { padding: 14px; }
  .world-page .world-stats div { padding-left: 7px; }
  .world-page .world-stats dd { font-size: 24px; }
  .world-page .world-stats dt { font-size: 11px; letter-spacing: -.01em; }
}

/* Quiet map credit */
.leaflet-container .leaflet-control-attribution { padding: 1px 6px; border-radius: 6px 0 0; background: color-mix(in srgb, var(--surface) 85%, transparent) !important; color: var(--muted); font-size: 10px; line-height: 1.5; }
.leaflet-container .leaflet-control-attribution a { color: var(--muted); text-decoration: none; }
.leaflet-container .leaflet-control-attribution a:hover, .leaflet-container .leaflet-control-attribution a:focus-visible { color: var(--fg); text-decoration: underline; }

/* Legal safeguards */
.listing-notice { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.45; }
.listing-notice p { margin: 0; }
.listing-notice strong { color: var(--fg); }
.listing-notice .sources { font-size: 12.5px; overflow-wrap: anywhere; }
.sources a.source-link, .round-side a.source-link, a.source-link { display: inline; min-width: 0; min-height: 0; line-height: inherit; text-align: left; overflow-wrap: anywhere; }
.report-link { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: underline; }
.report-link:hover { color: var(--fg); }
.round-side a.report-link { display: inline-flex; min-width: 0; line-height: 1.2; color: var(--muted); }
.data-note { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.correction-request { display: grid; gap: 10px; justify-items: start; margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.correction-request h2 { margin: 0; }
.correction-request p { margin: 0; overflow-wrap: anywhere; }
.round-side { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .report-link, .round-side a.report-link { min-height: 44px; }
  .job-side { flex-wrap: wrap; gap: 4px 12px; }
  .job-side small { white-space: normal; }
  .round-side a.source-link { min-height: 44px; display: inline-flex; align-items: center; }
  .listing-notice a.source-link { display: inline-block; min-height: 32px; line-height: 32px; }
}

/* Short listing notice */
.listing-notice { gap: 4px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 12.5px; }
.notice-row { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.notice-row > span { min-width: 0; overflow-wrap: anywhere; }
.notice-row > * + *::before { content: "·"; display: inline-block; margin: 0 6px; color: var(--muted); text-decoration: none; }
.source-toggle { display: inline-flex; align-items: center; min-height: 24px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.source-toggle:hover, .source-toggle[aria-expanded="true"] { color: var(--fg); }
.notice-row .report-link { font-size: inherit; }
@media (max-width: 760px) {
  .source-toggle, .notice-row .report-link { min-height: 44px; }
}
.notice-row { gap: 0 12px; }
.notice-row > * + *::before { content: none; }
