/* Headcount Labs — OpenAlex-style prototype. Layout and type scale follow OpenAlex (MIT, ourresearch/openalex-gui);
   colours come from the four schemes below, picked with data-theme on <html>. */
/* Fonts are served from /fonts (Google Fonts, latin subset, SIL OFL) and preloaded in each page's head, so the first paint already uses them. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: block; src: url(/fonts/public-sans.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: block; src: url(/fonts/newsreader.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plex-mono-500.woff2) format("woff2"); }
:root, [data-theme="alex"] {
  --bg: #fafafa; --surface: #ffffff; --muted: #f5f5f5; --press: #ebebeb;
  --line: #e2e2e2; --hair: #f0f0f0; --line-strong: #d4d4d4;
  --ink: #171717; --ink-2: #3f3f3f; --ink-3: #5c5c5c; --ink-4: #8a8a8a; --nav: #374151;
  --accent: #000000; --accent-ink: #ffffff; --accent-hover: #262626;
  --link: #1f6feb; --bar: rgba(0,0,0,.3); --bar-hi: rgba(0,0,0,.55);
  --cat-company: #1a7f37; --cat-place: #b35900; --cat-type: #5c5c5c;
  --dot1: #d4d4d4; --dot2: #a3a3a3; --dot3: #525252; --dot4: #000000;
  --slab1: #e7e5e4; --slab2: #a8a29e; --slab3: #44403c;
}
[data-theme="indigo"] {
  --bg: #f5f5fb; --surface: #ffffff; --muted: #eeeef8; --press: #e2e2f3;
  --line: #dfe0f0; --hair: #ececf6; --line-strong: #c9cae4;
  --ink: #12142e; --ink-2: #33365a; --ink-3: #555878; --ink-4: #8b8da8; --nav: #33365a;
  --accent: #4b3bf0; --accent-ink: #ffffff; --accent-hover: #3d2ed6;
  --link: #4b3bf0; --bar: #c4bdfb; --bar-hi: #4b3bf0;
  --cat-company: #0e7c66; --cat-place: #b4489a; --cat-type: #555878;
  --dot1: #d9d4fd; --dot2: #b9b1fa; --dot3: #8e80f2; --dot4: #4b3bf0;
  --slab1: #d9d4fd; --slab2: #8e80f2; --slab3: #2e2490;
}
[data-theme="forest"] {
  --bg: #f7f6f1; --surface: #fffefb; --muted: #f0eee6; --press: #e6e3d8;
  --line: #e2ded2; --hair: #eeebe2; --line-strong: #cfc9b8;
  --ink: #1b2420; --ink-2: #36423c; --ink-3: #56625b; --ink-4: #8a938d; --nav: #36423c;
  --accent: #14532d; --accent-ink: #ffffff; --accent-hover: #0f4224;
  --link: #0f766e; --bar: #a7c8b6; --bar-hi: #14532d;
  --cat-company: #14532d; --cat-place: #9a5b13; --cat-type: #56625b;
  --dot1: #cfe3d6; --dot2: #8fbfa3; --dot3: #3f8a63; --dot4: #14532d;
  --slab1: #e3dccb; --slab2: #9c8a63; --slab3: #3f5a3c;
}
[data-theme="ember"] {
  --bg: #fbfaf8; --surface: #ffffff; --muted: #f5f3ef; --press: #ece8e1;
  --line: #e7e2da; --hair: #f1ede7; --line-strong: #d6cfc4;
  --ink: #1c1917; --ink-2: #3a3431; --ink-3: #5f5853; --ink-4: #8f8780; --nav: #3a3431;
  --accent: #1c1917; --accent-ink: #ffffff; --accent-hover: #2d2825;
  --link: #c2410c; --bar: #f3c3a2; --bar-hi: #c2410c;
  --cat-company: #1c1917; --cat-place: #7c5e10; --cat-type: #5f5853;
  --dot1: #fde3d1; --dot2: #f6ad80; --dot3: #e5672c; --dot4: #9a330a;
  --slab1: #f1e4d6; --slab2: #d08a5c; --slab3: #57301a;
}
[data-theme="ocean"] {
  --bg: #f4f7fb; --surface: #ffffff; --muted: #ecf1f8; --press: #dfe7f2;
  --line: #dbe3ee; --hair: #e9eef5; --line-strong: #c3cfdf;
  --ink: #0f1b2d; --ink-2: #2b3a52; --ink-3: #4c5b73; --ink-4: #8492a6; --nav: #2b3a52;
  --accent: #1d4ed8; --accent-ink: #ffffff; --accent-hover: #1e40af;
  --link: #1d4ed8; --bar: #b9cdf5; --bar-hi: #1d4ed8;
  --cat-company: #0f766e; --cat-place: #b45309; --cat-type: #4c5b73;
  --dot1: #cfe0fb; --dot2: #93b6f2; --dot3: #3b74e0; --dot4: #1e3a8a;
  --slab1: #dbe7fb; --slab2: #6f9be8; --slab3: #1e3a8a;
}
[data-theme="plum"] {
  --bg: #faf7fb; --surface: #ffffff; --muted: #f4eef6; --press: #eadff0;
  --line: #e8dfec; --hair: #f2ecf4; --line-strong: #d6c6dd;
  --ink: #1f1426; --ink-2: #3e2d48; --ink-3: #614f6b; --ink-4: #9586a0; --nav: #3e2d48;
  --accent: #7e22ce; --accent-ink: #ffffff; --accent-hover: #6b21a8;
  --link: #9333ea; --bar: #dcc3f3; --bar-hi: #7e22ce;
  --cat-company: #be185d; --cat-place: #0e7490; --cat-type: #614f6b;
  --dot1: #f0dcfb; --dot2: #d4a7f2; --dot3: #a855f7; --dot4: #6b21a8;
  --slab1: #f0e2f7; --slab2: #b77fdc; --slab3: #4c1d6e;
}
[data-theme="coral"] {
  --bg: #f8f9fb; --surface: #ffffff; --muted: #f0f2f6; --press: #e4e7ee;
  --line: #e1e5ec; --hair: #edf0f4; --line-strong: #cbd2dd;
  --ink: #1e293b; --ink-2: #334155; --ink-3: #55637a; --ink-4: #8a96a8; --nav: #334155;
  --accent: #e5484d; --accent-ink: #ffffff; --accent-hover: #cc3439;
  --link: #2563eb; --bar: #f6b6b8; --bar-hi: #e5484d;
  --cat-company: #0f766e; --cat-place: #c2410c; --cat-type: #55637a;
  --dot1: #fbd5d6; --dot2: #f39a9d; --dot3: #e5484d; --dot4: #1e293b;
  --slab1: #e2e8f0; --slab2: #f39a9d; --slab3: #1e293b;
}
/* "The Open Commons": Ocean #126F78, Ink #183148, Canvas #F7F8F2, Sky #DDEFEF, Sunlight #F1C76B; the rest are steps between them */
[data-theme="commons"] {
  --bg: #f7f8f2; --surface: #ffffff; --muted: #eef2ec; --press: #ddefef;
  --line: #e0e5dc; --hair: #ebeee6; --line-strong: #c9d3cc;
  --ink: #183148; --ink-2: #2e4660; --ink-3: #50657a; --ink-4: #8494a3; --nav: #2e4660;
  --accent: #126f78; --accent-ink: #ffffff; --accent-hover: #0d5a62;
  --link: #126f78; --bar: #b5dcdc; --bar-hi: #126f78;
  --cat-company: #126f78; --cat-place: #8a5a00; --cat-type: #50657a;
  --dot1: #ddefef; --dot2: #f1c76b; --dot3: #126f78; --dot4: #183148;
  --slab1: #ddefef; --slab2: #f1c76b; --slab3: #126f78;
  --badge-bg: #fdf3dc; --badge-line: #f1c76b; --mark-line: inset 0 -3px 0 #f1c76b;
  --f-sans: "Public Sans"; --f-serif: "Source Serif 4"; --f-mono: "IBM Plex Mono";
}
/* "Civic Blue": Blue #2457C5, Ink #172D50, Canvas #F8F9F5, Sky #DCE9FF, Peach #EF9B79; the rest are steps between them */
/* civic is also the colour scheme of a page before hc.js has set data-theme, so the first paint is already blue */
:root:not([data-theme]), [data-theme="civic"] {
  --bg: #f8f9f5; --surface: #ffffff; --muted: #eef2f8; --press: #dce9ff;
  --line: #dfe4ec; --hair: #ebeef3; --line-strong: #c8d1df;
  --ink: #172d50; --ink-2: #2d4468; --ink-3: #4f6383; --ink-4: #8392aa; --nav: #2d4468;
  --accent: #2457c5; --accent-ink: #ffffff; --accent-hover: #1c47a6;
  --link: #2457c5; --bar: #b9d0f7; --bar-hi: #2457c5;
  --cat-company: #2457c5; --cat-place: #a8471f; --cat-type: #4f6383;
  --dot1: #dce9ff; --dot2: #ef9b79; --dot3: #2457c5; --dot4: #172d50;
  --slab1: #dce9ff; --slab2: #ef9b79; --slab3: #2457c5;
  --badge-bg: #fdeee7; --badge-line: #ef9b79; --mark-line: inset 0 -3px 0 #ef9b79;
  --f-sans: "Public Sans"; --f-serif: "Newsreader"; --f-mono: "IBM Plex Mono";
}
/* Commons and Civic type: serif only for big editorial headlines (homepage and entity titles), never in the search tool */
:is([data-theme="commons"], [data-theme="civic"], :root:not([data-theme])) :is(.hero h1, .band h2, .mission h2, .stat b, .ent h1) {
  font-family: var(--f-serif), Georgia, serif; font-weight: 600; letter-spacing: -.015em; font-optical-sizing: auto; }
:is([data-theme="commons"], [data-theme="civic"], :root:not([data-theme])) .mission h2 { font-weight: 400; }
:is([data-theme="commons"], [data-theme="civic"], :root:not([data-theme])) .hero h1 { line-height: 1.04; }
[data-theme="midnight"] {
  color-scheme: dark;
  --bg: #0e1016; --surface: #161922; --muted: #1d212c; --press: #262b38;
  --line: #2a2f3d; --hair: #20242f; --line-strong: #3a4152;
  --ink: #eceef6; --ink-2: #c9cde0; --ink-3: #9da3ba; --ink-4: #6f768d; --nav: #c9cde0;
  --accent: #8b7bff; --accent-ink: #0e1016; --accent-hover: #a596ff;
  --link: #a596ff; --bar: #3d3778; --bar-hi: #8b7bff;
  --cat-company: #5eead4; --cat-place: #fbbf77; --cat-type: #9da3ba;
  --dot1: #2e2a5c; --dot2: #514a9e; --dot3: #8b7bff; --dot4: #cfc8ff;
  --slab1: #262b38; --slab2: #514a9e; --slab3: #8b7bff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--f-sans, "Inter"), -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono, "JetBrains Mono"), ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.wrap { max-width: 1168px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--muted); }
.btn.out { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.out:hover { background: var(--muted); }
.btn.lg { height: 40px; padding: 0 16px; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 5px; border: 0; background: none; color: var(--ink-3); cursor: pointer; }
.icon-btn:hover { background: var(--muted); color: var(--ink); }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .bar { display: flex; align-items: center; gap: 28px; height: 56px; padding: 0 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--logo-navy, #0B2D5B); font-size: 21px; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.logo .mark { width: 34px; height: 30px; flex: none; }
[data-theme="midnight"] { --logo-navy: #e6ecf5; }
.logo:hover { text-decoration: none; }
.logo b { font-weight: 400; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 10px; border-radius: 6px; color: var(--nav); font-size: 14px; font-weight: 500; }
.nav a:hover { background: var(--muted); text-decoration: none; }
.nav a[aria-current] { color: var(--ink); background: var(--muted); }
/* Product and Docs menus (openalex.org style) */
.dd { position: relative; }
.dd-b { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--nav); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.dd-b .i { width: 14px; height: 14px; transition: transform .15s; }
.dd-b:hover, .dd-b[aria-expanded="true"], .dd-b[aria-current] { background: var(--muted); color: var(--ink); }
.dd-b[aria-expanded="true"] .i { transform: rotate(180deg); }
.dd-m { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; display: grid; grid-template-columns: repeat(2, 236px); gap: 4px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.dd-m[hidden] { display: none; }
.dd-m::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* keeps the pointer over the menu while it crosses the gap */
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) { .dd-m:not([hidden]) { animation: dd-in .14s ease-out; } }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
.nav .dd-m a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 8px; color: var(--ink); font-weight: 400; }
.nav .dd-m a:hover, .nav .dd-m a[aria-current] { background: var(--muted); }
.dd-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: var(--muted); color: var(--ink-2); }
.dd-ic .i { width: 15px; height: 15px; }
.dd-m b { display: block; font-size: 14px; font-weight: 500; }
.dd-m small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
@media (max-width: 1000px) {
  .dd-b { width: 100%; justify-content: space-between; padding: 8px 10px; }
  .dd-m { position: static; grid-template-columns: minmax(0, 1fr); padding: 2px 0 6px 6px; border: 0; box-shadow: none; background: none; }
  .nav .dd-m a { padding: 8px 10px; }
  .dd-m small { display: none; }
}
.top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }

/* home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  min-height: calc(100vh - 57px); max-height: 900px; padding-top: 40px; padding-bottom: 56px; }
.hero h1 { margin: 0 0 20px; font-size: 60px; line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.hero p.lede { margin: 0 0 32px; max-width: 30em; color: var(--ink-3); font-size: 17px; line-height: 1.65; }
.qbox { max-width: 480px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 12px 10px; }
.qbox:focus-within { border-color: var(--ink-4); box-shadow: 0 0 0 3px var(--hair); }
.qbox input { width: 100%; border: 0; outline: 0; background: none; font-size: 15px; padding: 0 2px; }
.qbox { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; }
.qbox input { flex: 1; min-width: 0; }
.qbox .row { flex: none; }
.qbox input::placeholder { color: var(--ink-4); }
.qbox .row { display: flex; align-items: center; gap: 8px; }
.qbox .row .btn { margin-left: auto; }
.hint { margin: 14px 0 0; font-size: 13px; color: var(--ink-4); }
.hint a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
.hint a:hover { text-decoration: none; border-color: var(--ink-3); }

/* Live job feed (home): newest jobs on top, new ones slide in, each with the employer's logo and when we added it */
.feed { position: relative; height: 560px; overflow: hidden; border-top: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
/* Placeholder rows until the first jobs arrive from the stream, so the column is not blank and then filled in. */
#feed:empty { height: 560px; background:
  linear-gradient(var(--press) 0 36px, transparent 0) 4px 15px / 36px 70px repeat-y,
  linear-gradient(var(--press) 0 12px, transparent 0) 52px 17px / 56% 70px repeat-y,
  linear-gradient(var(--press) 0 10px, transparent 0) 52px 41px / 38% 70px repeat-y; opacity: .7; }
.rec { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ic t ago" "ic m m"; gap: 3px 12px; padding: 14px 4px; border-bottom: 1px solid var(--hair); }
.rec .lg { grid-area: ic; position: relative; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  background: var(--press); color: var(--ink-2); font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.rec .lg img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 5px; object-fit: contain; background: #fff; }
.rec .t { grid-area: t; font-size: 15px; line-height: 1.4; }
.rec .t .nw { white-space: nowrap; }
.rec .t svg.i { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; opacity: .55; }
.rec .m { grid-area: m; font-size: 13px; color: var(--ink-3); }
.rec .ago { grid-area: ago; font-size: 12px; color: var(--ink-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* a new job: drops in from above, its row glows in the accent colour and fades back, the logo pops */
.rec.enter { animation: enter .65s cubic-bezier(.2,.8,.2,1), glow 2.6s ease-out; }
.rec.enter .lg { animation: pop .55s .15s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(-28px) scale(.98); } }
@keyframes glow { 0%, 20% { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 3px 0 0 var(--accent); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 760px) { .rec { grid-template-areas: "ic t t" "ic m m" "ic ago ago"; } }
@media (prefers-reduced-motion: reduce) { .rec.enter, .rec.enter .lg { animation: none; } }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--badge-line, var(--line-strong)); border-radius: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--badge-bg, var(--surface)); white-space: nowrap; }
.co { color: var(--cat-company); font-weight: 500; }
.pl { color: var(--cat-place); font-weight: 500; }
.co svg.i, .pl svg.i { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }
.learn { display: flex; justify-content: center; padding-bottom: 24px; margin-top: -40px; }

/* home sections */
.band { padding: 88px 0; }
.band.alt { background: var(--muted); }
.band.white { background: var(--surface); }
.band h2 { margin: 0 0 18px; font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
@media (min-width: 1001px), (max-width: 480px) { .band h2 .nw { white-space: nowrap; } }
.band p { color: var(--ink-3); line-height: 1.7; }
.sources { display: grid; gap: 16px; }
.sources small { text-align: center; font-size: 12px; color: var(--ink-4); letter-spacing: .04em; text-transform: uppercase; }
/* ATS logo strip, copied from the live headcountlabs.com homepage: one row of logo chips scrolling sideways forever */
.belt { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.belt-track { display: flex; gap: 14px; width: max-content; animation: belt 80s linear infinite; }
.belt:hover .belt-track { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(calc(-50% - 7px)); } }
.ats { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 10px 20px 10px 12px; font-weight: 500; font-size: 17px; color: var(--ink-2); white-space: nowrap; }
.ats img, .ats svg { width: 24px; height: 24px; flex: none; border-radius: 6px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .belt { -webkit-mask-image: none; mask-image: none; } .belt-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .ats.dup { display: none; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { max-width: 34em; }
.more-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--ink); }
.layers { display: grid; gap: 14px; }
.layer { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: center; }
.slab { height: 64px; border-radius: 12px; position: relative; box-shadow: inset 0 -6px 0 rgba(0,0,0,.08); }
.slab i { position: absolute; inset: 14px 16px; background-image: radial-gradient(circle, rgba(255,255,255,.55) 2px, transparent 2.5px); background-size: 16px 16px; }
.layer:nth-child(1) .slab { background: var(--slab1); }
.layer:nth-child(2) .slab { background: var(--slab2); }
.layer:nth-child(3) .slab { background: var(--slab3); }
.layer b { display: flex; gap: 8px; align-items: center; font-size: 17px; }
.layer b em { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; font-style: normal; }
.layer small { display: block; margin-left: 30px; color: var(--ink-3); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat b { display: block; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.stat span { display: block; font-size: 17px; margin-bottom: 14px; }
.stat p { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.mission h2 { font-weight: 400; }
.mission h2 b { display: block; font-weight: 700; }
.mission p { margin: 0 0 14px; font-size: 16px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; color: var(--ink); min-height: 168px; }
.tile:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: 0 1px 0 var(--line); }
.tile b { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; }
.tile p { margin: 10px 0 0; font-size: 13px; line-height: 1.55; }
.tile span { margin-top: auto; align-self: flex-end; font-size: 13px; font-weight: 600; }
.faq { margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--ink-4); font-size: 26px; line-height: 1; transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details.closing summary::after { rotate: none; }
.faq .ans { overflow: hidden; }
.faq details p { margin: -6px 0 20px; max-width: 46em; font-size: 15px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 64px; }
.foot .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.foot .cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.foot h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }

/* search results page */
.serp { display: grid; grid-template-columns: 426px minmax(0, 1fr); gap: 36px; padding: 16px 12px 64px; max-width: 1440px; margin: 0 auto; }
.side-tools { display: flex; justify-content: flex-end; gap: 2px; height: 34px; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.facet { margin-bottom: 12px; }
.facet-h { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--line); }
.facet-h .grip { color: var(--ink-4); letter-spacing: -2px; font-size: 13px; }
.facet-h b { font-size: 14.4px; font-weight: 500; flex: 1; }
.facet table { width: 100%; border-collapse: collapse; margin: 4px 0; }
.facet td { padding: 4px 16px; font-size: 14px; line-height: 1.43; vertical-align: top; }
.facet td:first-child { width: 34px; padding-right: 0; }
.facet td.n { text-align: right; width: 84px; font-family: var(--f-mono, "JetBrains Mono"), ui-monospace, Menlo, monospace; font-size: 13px; color: var(--ink); }
.facet label { cursor: pointer; display: block; }
.facet input[type=checkbox] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.facet tr:hover td { background: var(--muted); }
.facet .foot-more { display: flex; justify-content: flex-end; padding: 0 8px 8px; }
.facet .foot-more button { border: 0; background: none; font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 5px; cursor: pointer; }
.facet .foot-more button:hover { background: var(--muted); }
.hist { padding: 14px 8px 4px; }
.hist .bars { display: flex; align-items: flex-end; gap: 1px; height: 72px; }
.hist .bars i { flex: 1; background: var(--bar); min-height: 2px; }
.hist .bars i.on { background: var(--bar-hi); }
.hist .rail { position: relative; height: 2px; margin: 12px 6px 0; background: var(--ink-2); border-radius: 2px; }
.hist .rail::before, .hist .rail::after { content: ""; position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); }
.hist .rail::before { left: -6px; } .hist .rail::after { right: -6px; }
.ends { display: flex; justify-content: space-between; padding: 14px 8px 8px; font-size: 12px; color: var(--ink-4); letter-spacing: .03em; }
.facet label.ratio, .ratio { display: flex; align-items: center; gap: 14px; padding: 8px 16px 8px 12px; }
.ratio svg { width: 28px; height: 28px; }
.ratio b { font-size: 16px; font-weight: 500; flex: 1; }
.ratio .mono { color: var(--ink); }
.ratio input { width: 16px; height: 16px; accent-color: var(--accent); }
.tabs { display: flex; gap: 2px; height: 34px; align-items: center; }
.tabs button { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: none; font-size: 12px; font-weight: 500; cursor: pointer; }
.tabs button[aria-pressed=true] { background: var(--press); font-weight: 600; }
.tabs .sp { flex: 1; }
.sbox { padding: 7px 10px 0; }
.sbox .line { display: flex; align-items: center; gap: 10px; height: 46px; }
.sbox .ent { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 4px; font-size: 14px; color: var(--ink-2); }
.sbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.sbox .chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 6px; margin: 0 -10px; border-top: 1px solid var(--line); padding-left: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); font-size: 14px; cursor: pointer; }
.chip:hover { background: var(--muted); }
.chip.on { border-color: var(--ink-2); background: var(--muted); font-weight: 500; }
.chip.on .x { display: inline-grid; }
.chip .x { display: none; }
.chip.more { border-color: transparent; }
.results { margin-top: 32px; }
.results-h { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 6px 0 10px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.results-h .sp { flex: 1; }
.results-h select { border: 0; background: none; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.res { display: block; padding: 14px 12px 16px; border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res a.t { font-size: 17px; line-height: 1.4; letter-spacing: .01em; }
.res .m { margin-top: 3px; font-size: 14px; color: var(--ink); }
.res .m em { font-style: italic; }
.res .m .dim { color: var(--ink-3); }
.res mark { background: none; color: inherit; font-weight: 600; box-shadow: var(--mark-line, none); }
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 14px; border-top: 1px solid var(--line); }
.pager button { min-width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; font-size: 13px; cursor: pointer; }
.pager button[aria-current] { background: var(--press); font-weight: 600; }
.pager button:disabled { color: var(--ink-4); cursor: default; }
.pager .gap { min-width: 16px; text-align: center; color: var(--ink-4); font-size: 13px; }
.capnote { margin: 0; padding: 0 14px 14px; text-align: center; font-size: 12px; color: var(--ink-3, var(--ink-4)); }
.capnote:empty { display: none; }
@media (max-width: 440px) { .pager { gap: 2px; padding: 14px 8px; } }
.loading .results-list { opacity: .5; }
/* Placeholder rows until the first results arrive. */
#list:empty { min-height: 560px; background:
  linear-gradient(var(--press) 0 14px, transparent 0) 12px 18px / 62% 84px repeat-y,
  linear-gradient(var(--press) 0 11px, transparent 0) 12px 46px / 44% 84px repeat-y,
  linear-gradient(var(--press) 0 11px, transparent 0) 12px 66px / 30% 84px repeat-y; opacity: .7; }
.empty { padding: 32px 14px; color: var(--ink-3); font-size: 14px; }

/* entity pages (job, company) */
.ent { max-width: 1168px; margin: 0 auto; padding: 24px 16px 72px; }
.ent-top { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.ent-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.ent-top .sp { flex: 1; }
.ent h1 { margin: 6px 0 20px; font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.ent h1.long { font-size: 36px; }
.ent-actions { display: flex; gap: 8px; margin: -4px 0 18px; }
.cols { display: grid; grid-template-columns: minmax(0, 670px) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.panel.flat { border-color: transparent; }
.kv { padding: 18px 16px; }
.kv p { margin: 0 0 4px; font-size: 16px; line-height: 1.5; }
.kv p b { font-weight: 600; }
.kv hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.kv .plus { font-weight: 600; }
.ptabs { display: flex; gap: 0; padding: 0 0 0 0; border-bottom: 1px solid var(--line); }
.ptabs button { height: 34px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 13px; font-weight: 500; cursor: pointer; margin-bottom: -1px; }
.ptabs button[aria-selected=true] { border-color: var(--ink); }
.desc { font-size: 15px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.desc.clip { max-height: 13.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.textbtn { border: 0; background: none; padding: 0; color: var(--link); font-weight: 600; cursor: pointer; font-size: 15px; }
.side-stats { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); margin: 0 8px; }
.side-stats p { margin: 0 0 4px; font-size: 16px; }
.side-stats b { font-weight: 600; }
.sec { padding: 22px 16px 10px; }
.sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 0 8px; }
.sec-h b { font-size: 20px; font-weight: 400; flex: 1; }
.sec-h svg.i { width: 18px; height: 18px; color: var(--ink-3); }
.sec .hist { padding: 4px 8px; }
.sec .hist .bars { height: 92px; }
.toplist { width: 100%; border-collapse: collapse; }
.toplist td { padding: 6px 8px; font-size: 14px; border-bottom: 1px solid var(--line); }
.toplist tr:last-child td { border-bottom: 0; }
.toplist td.n { text-align: right; font-variant-numeric: tabular-nums; }
.sec .more { display: flex; justify-content: flex-end; padding: 10px 8px; font-size: 12px; font-weight: 500; }
.sec .more a { color: var(--ink); }
.ent-list .res { padding: 16px 14px; }
.ent-list .res-h { display: flex; justify-content: flex-end; padding: 10px 10px 0; }

/* scheme switcher (prototype only) */
.scheme { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; gap: 4px; align-items: center; padding: 6px 6px 6px 12px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.08); font-size: 12px; }
.scheme span { color: var(--ink-3); margin-right: 4px; }
.scheme button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: 12px; }
.scheme button i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.scheme button[aria-pressed=true] { background: var(--press); font-weight: 600; }
@media (max-width: 1240px) {
  .scheme span { display: none; }
  .scheme button { padding: 0 8px; }
  .scheme button:not([aria-pressed=true]) b { display: none; }
}

/* phones and tablets */
@media (max-width: 1000px) {
  .serp { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px 12px 64px; }
  .serp .side { display: none; order: 2; }
  .serp.show-filters .side { display: block; }
  .cols { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot .cols { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; padding-bottom: 40px; gap: 36px; }
  .hero h1 { font-size: 52px; }
  .hero p.lede { max-width: 36em; }
  .qbox { max-width: 560px; }
  .feed { height: 420px; }
}
/* up to 1000px the main links fold into the menu button, so the header fits in every language */
@media (max-width: 1000px) {
  .top .bar { gap: 12px; }
  .nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; padding: 8px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 760px) {
  .top .right .ghost { display: none; }
  .hero { padding-top: 36px; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .feed { height: 380px; }
  .learn { margin-top: 0; }
  .band { padding: 56px 0; }
  .band h2 { font-size: 32px; }
  .split, .mission { grid-template-columns: 1fr; gap: 32px; }
  .layer { grid-template-columns: 110px 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .stat b { font-size: 30px; }
  .foot .cols { grid-template-columns: repeat(2, 1fr); }
  .foot .head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ent h1 { font-size: 32px; } .ent h1.long { font-size: 26px; }
  .res a.t { font-size: 16px; }
  .scheme button b, .scheme button[aria-pressed=true] b { display: none; }
}
/* very narrow phones: the full "Headcount Labs" name plus the API key button must still fit */
@media (max-width: 400px) { .top .logo { font-size: 18px; gap: 6px; } .top .logo .mark { width: 28px; height: 25px; } }
@media (max-width: 340px) { .top .logo { font-size: 16px; gap: 5px; } .top .logo .mark { width: 24px; height: 21px; } .top .right .btn { padding-left: 10px; padding-right: 10px; font-size: 13px; } }

/* language switch, top right of the header */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: none;
  color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--muted); color: var(--ink); }
.lang-btn svg.i { width: 16px; height: 16px; }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 170px; padding: 4px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.lang-menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 5px;
  background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.lang-menu button b { font-size: 11px; color: var(--ink-4); font-weight: 600; }
.lang-menu button:hover { background: var(--muted); }
.lang-menu button[aria-checked="true"] { color: var(--accent); font-weight: 600; }
@media (max-width: 400px) { .lang-btn span { display: none; } .lang-btn { padding: 0 6px; } }

/* phones: the API-key button moves from the header bar into the menu, which leaves room for the language switch */
.nav-cta { display: none; }
@media (max-width: 480px) { .top .right .btn:not(.ghost) { display: none; } .nav .nav-cta { display: block; color: var(--accent); font-weight: 600; } }
/* "add your company" under the access tiles */
.add-co { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 28px; padding: 18px 20px;
  border: 1px dashed var(--line-strong); border-radius: 10px; text-align: center; }
.add-co p { margin: 0; color: var(--ink-2); }

/* "A nonprofit initiative" under the name in the header logo */
.top .logo .name, .foot .logo .name { display: flex; flex-direction: column; line-height: 1.05; }
.top .logo small, .foot .logo small { margin-top: 2px; color: var(--ink-3); font-size: 11.5px; font-weight: 500; letter-spacing: .01em; }

/* job-board logo strip under the home search: smaller chips than the old full-width band */
.hero .sources { margin-top: 36px; max-width: 520px; gap: 10px; }
.hero .sources small { text-align: left; }
.hero .ats { padding: 6px 14px 6px 8px; font-size: 14px; gap: 8px; }
.hero .ats img, .hero .ats svg { width: 20px; height: 20px; }
.hero .belt-track { gap: 10px; }

/* "How the catalog is built" flow: job boards -> Headcount Labs -> people and agents, in three tinted panels */
.flow { display: grid; gap: 0; }
.flow :where(svg.fi) { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow svg .eye { fill: #fff; }
.fl-panel { padding: 18px 16px 16px; border-radius: 18px; }
.fl-panel.blue { background: #EEF3FC; }
.fl-panel.peach { background: #FCF1E8; }
.fl-step { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.fl-step em { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #1B3F8B; color: #fff; font-style: normal; font-weight: 700; font-size: 16px; }
.fl-step.warm em { background: #D2691E; }
.fl-step b { display: block; font-size: 20px; letter-spacing: -.02em; line-height: 1.15; color: #0E1E3D; }
.fl-step small { display: block; color: #4A5875; font-size: 13px; }
.fl-tiles { display: flex; gap: 6px; }
.fl-tiles .fl-tile { flex: 1 1 0; min-width: max-content; padding-left: 8px; padding-right: 8px; }
.fl-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 2px 10px; border-radius: 10px; background: #fff;
  box-shadow: 0 2px 8px rgba(27,63,139,.07); font-size: 10.5px; letter-spacing: -.01em; color: #0E1E3D; min-width: 0; }
.fl-tile img, .fl-tile svg { width: 24px !important; height: 24px !important; border-radius: 5px; object-fit: contain; }
.fl-tile.more svg { color: #6E95DD; }
.fl-tile b { font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-branch { display: block; width: calc(100% - 32px); height: auto; margin: 0 16px; }
.fl-branch path, .fl-down path { fill: none; stroke: #9DB8E8; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fl-down { display: block; width: 34px; height: 34px; margin: 6px auto; }
.fl-down.narrow { display: none; }
.fl-scene { display: block; width: 100%; height: auto; max-width: 440px; margin: 0 auto; }
.fl-users { display: grid; grid-template-columns: repeat(2, minmax(0, 170px)); justify-content: center; gap: 16px; }
.fl-users span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 14px; border-radius: 12px; background: #fff;
  box-shadow: 0 2px 8px rgba(27,63,139,.07); font-size: 14px; color: #0E1E3D; }
.fl-users svg.fi { width: 30px; height: 30px; color: #2457C5; }
.fl-users span:last-child svg.fi { color: #0E2A5C; }
@media (max-width: 560px) { .fl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .fl-tiles .fl-tile { min-width: 0; padding-left: 2px; padding-right: 2px; } .fl-branch { display: none; } .fl-down.narrow { display: block; } }
@media (max-width: 400px) { .fl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
