/* Shared by the plain pages (directory, jobs, about, admin): the map's tokens and its frosted glass, IBM Plex Sans,
   light and dark themes. A still of the real 3D map lies under every page, by day or by night with the theme
   (assets/page-bg-day.webp / page-bg-night.webp, tools/render_page_bg.mjs), veiled so text reads, so moving between
   the map and a page feels like the same place. */
:root {
  --ink: #17202b;
  --muted: #5d6673;
  --panel: rgba(250, 248, 243, 0.94);
  --panel-line: rgba(23, 32, 43, 0.12);
  --chip: rgba(23, 32, 43, 0.06);
  --page: #e9e2d4;
  --focus: #2f6fd0;
  --g-born: #f0a202;
  --g-hub: #3d7dd8;
  --glass: rgba(250, 248, 243, 0.78);
  --glass-hi: rgba(252, 251, 248, 0.86);
  --glass-lo: rgba(247, 244, 238, 0.74);
  --veil: rgba(233, 226, 212, 0.6);
  --glass-edge: rgba(255, 255, 255, 0.62);
  --glass-lit: rgba(255, 255, 255, 0.9);
  --glass-shadow: rgba(30, 40, 60, 0.18);
  --chip-glass: rgba(255, 255, 255, 0.55);
  --f-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef1f5; --muted: #a3acb9; --panel: rgba(18, 26, 38, 0.92); --panel-line: rgba(238, 241, 245, 0.14);
    --chip: rgba(238, 241, 245, 0.08); --page: #141b25; --focus: #7fb0ff;
    --glass: rgba(18, 26, 38, 0.84); --glass-hi: rgba(26, 36, 51, 0.88); --glass-lo: rgba(14, 20, 30, 0.84); --chip-glass: rgba(238, 241, 245, 0.09); --veil: rgba(8, 13, 22, 0.55);
    --glass-edge: rgba(255, 255, 255, 0.16); --glass-lit: rgba(255, 255, 255, 0.22); --glass-shadow: rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eef1f5; --muted: #a3acb9; --panel: rgba(18, 26, 38, 0.92); --panel-line: rgba(238, 241, 245, 0.14);
  --chip: rgba(238, 241, 245, 0.08); --page: #141b25; --focus: #7fb0ff;
  --glass: rgba(18, 26, 38, 0.84); --glass-hi: rgba(26, 36, 51, 0.88); --glass-lo: rgba(14, 20, 30, 0.84); --chip-glass: rgba(238, 241, 245, 0.09); --veil: rgba(8, 13, 22, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.16); --glass-lit: rgba(255, 255, 255, 0.22); --glass-shadow: rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background: var(--page); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 15px/1.45 var(--f-body); font-variant-numeric: tabular-nums; }
/* the map underneath, then a veil in the page colour */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; }
body::before { inset: -24px; background: url(assets/page-bg-day.webp) center 45% / cover no-repeat; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { background-image: url(assets/page-bg-night.webp); } }
:root[data-theme="dark"] body::before { background-image: url(assets/page-bg-night.webp); }
body::after { z-index: -1; background: var(--veil); }
a { color: inherit; }

/* frosted glass, the same recipe as the map's panels */
.panel { position: relative; background: linear-gradient(140deg, var(--glass-hi) 0%, var(--glass) 55%, var(--glass-lo) 100%);
  border: 1px solid var(--glass-edge); border-radius: 16px;
  backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: inset 0 1px 0 var(--glass-lit), 0 12px 40px var(--glass-shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .panel { background: var(--panel); } }

main { max-width: 820px; margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
           calc(40px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.eyebrow { font: 500 13px/1.3 var(--f-body); color: var(--muted); }
.back { display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--panel-line); }
.back:hover { color: var(--ink); }
header { display: grid; gap: 10px; margin: 18px 0 20px; }
h1 { margin: 0; font: 600 clamp(26px, 6vw, 38px)/1.1 var(--f-display); letter-spacing: -0.02em; text-wrap: balance; }
.intro { margin: 0; color: var(--muted); max-width: 60ch; text-wrap: pretty; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.metric-switch { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px; border-radius: 11px; background: var(--chip);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); width: fit-content; max-width: 100%; }
.metric-switch button { font: 500 12.5px/1 var(--f-display); padding: 9px 12px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--ink); cursor: pointer; transition: background 0.2s, box-shadow 0.2s; }
.metric-switch button:hover { background: var(--chip-glass); }
.metric-switch button[aria-pressed="true"] { background: var(--chip-glass); border-color: var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-lit), 0 2px 8px var(--glass-shadow); font-weight: 600; }
.metric-switch button span { color: var(--ink); opacity: 0.8; font-weight: 400; margin-left: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.filter { flex: 1 1 220px; max-width: 320px; font: 14px/1 var(--f-body); color: var(--ink); padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--glass-edge); background: var(--chip-glass); min-width: 0; }
.filter::placeholder { color: var(--muted); }
@media (max-width: 560px) { .filter { max-width: none; } .row { padding: 12px 10px; } }

.list { list-style: none; margin: 0; padding: 4px; overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px;
  text-decoration: none; border-radius: 11px; }
.list li + li .row { border-top: 1px solid var(--panel-line); border-radius: 0 0 11px 11px; }
.row:hover { background: var(--chip); }
.row .name { display: flex; align-items: baseline; gap: 8px; min-width: 0; font: 600 15px/1.3 var(--f-body); }
.row .name b { overflow-wrap: anywhere; font-weight: 600; }
.row .desc { margin-top: 2px; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.row .arrow { width: 16px; height: 16px; background: var(--muted); -webkit-mask: url(assets/icons/arrow-up-right.svg) center / contain no-repeat; mask: url(assets/icons/arrow-up-right.svg) center / contain no-repeat; }
.row:hover .arrow { background: var(--ink); }
.tag { flex: none; display: inline-flex; align-items: center; font: 500 11.5px/1.2 var(--f-display); padding: 3px 6px;
  border-radius: 5px; background: var(--chip); color: var(--ink); white-space: nowrap; }
.tag.rank { background: color-mix(in srgb, var(--g-born) 22%, transparent); color: var(--ink); }
.empty { padding: 18px 14px; color: var(--muted); }
footer { margin-top: 18px; color: var(--muted); font-size: 12.5px; display: grid; gap: 6px; }
footer a:hover { color: var(--ink); }

/* site nav shared by the plain pages */
/* site nav: a glass pill like the map's nav bar */
.site { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px; font: 500 13px/1 var(--f-body);
  border-radius: 14px; background: linear-gradient(140deg, var(--glass-hi) 0%, var(--glass) 55%, var(--glass-lo) 100%);
  border: 1px solid var(--glass-edge); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: inset 0 1px 0 var(--glass-lit), 0 8px 28px var(--glass-shadow); }
.site a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 9px; white-space: nowrap; }
.site a:hover { background: var(--chip); }
.site a[aria-current="page"] { background: var(--ink); color: var(--page); }
.site .home { font-weight: 600; margin-right: auto; }
.site a:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.site + header { margin-top: 26px; }

/* directory */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters select, .filters .filter { font: 14px/1.2 var(--f-body); color: var(--ink); padding: 9px 10px; border-radius: 10px;
  border: 1px solid var(--glass-edge); background: var(--glass-hi); min-width: 0;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 var(--glass-lit), 0 4px 14px var(--glass-shadow); }
.filters .filter { flex: 2 1 220px; max-width: none; }
.filters select { flex: 1 1 150px; }
.filters select option { background: var(--page); color: var(--ink); }
.filters select:focus-visible, .filters .filter:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.summary { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.dir .row { grid-template-columns: minmax(0, 1fr) auto; }
.dir .nums { display: grid; grid-auto-flow: column; gap: 18px; text-align: right; font-size: 13px; color: var(--muted); }
.dir .nums b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.dir .acts { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; }
.dir .acts a { color: var(--muted); text-underline-offset: 3px; }
.dir .acts a:hover { color: var(--ink); }
.dir .row:hover { background: transparent; }
.dir .fund { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.dir .fund .tag.stage { background: color-mix(in srgb, #2a8a5c 16%, transparent); color: var(--ink); }
.dir .fund .tag.hire { background: color-mix(in srgb, #2f6fd0 14%, transparent); color: var(--ink); }
.more-btn { display: block; margin: 12px auto 0; font: 500 14px/1 var(--f-body); color: var(--ink); background: var(--glass-hi);
  border: 1px solid var(--glass-edge); border-radius: 10px; padding: 11px 16px; cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 var(--glass-lit), 0 4px 14px var(--glass-shadow); }
.more-btn:hover { background: var(--chip); }
@media (max-width: 560px) { .dir .nums { grid-auto-flow: row; gap: 4px; } .dir .nums .h { display: none; } }
