:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e3e6eb;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #e0f2f0;
  --focus: #2563eb;
  --ok: #166534;   --ok-bg: #dcfce7;
  --mid: #92400e;  --mid-bg: #fef3c7;
  --no: #9f1239;   --no-bg: #ffe4e6;
  --match: #1d4ed8; --match-bg: #dbeafe;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 1px 3px rgb(16 24 40 / .06);
  --radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --surface: #161b22; --surface-2: #1f2630; --ink: #e6edf3; --ink-2: #b1bac4; --ink-3: #8b949e;
    --line: #2d3540; --accent: #2dd4bf; --accent-ink: #042f2e; --accent-soft: #123a37; --focus: #60a5fa;
    --ok: #86efac; --ok-bg: #12301f; --mid: #fcd34d; --mid-bg: #3a2c0c; --no: #fda4af; --no-bg: #3d1420;
    --match: #93c5fd; --match-bg: #172a4a; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --surface: #161b22; --surface-2: #1f2630; --ink: #e6edf3; --ink-2: #b1bac4; --ink-3: #8b949e;
  --line: #2d3540; --accent: #2dd4bf; --accent-ink: #042f2e; --accent-soft: #123a37; --focus: #60a5fa;
  --ok: #86efac; --ok-bg: #12301f; --mid: #fcd34d; --mid-bg: #3a2c0c; --no: #fda4af; --no-bg: #3d1420;
  --match: #93c5fd; --match-bg: #172a4a; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  color: var(--accent-ink); font-weight: 800; }
.top-actions { display: flex; align-items: center; gap: 4px; }
.ghost { background: none; border: 0; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.ghost:hover { background: var(--surface-2); color: var(--ink); }
.icon-only { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; }

/* ---------- intro ---------- */
html { scroll-behavior: smooth; }
.hero { position: relative; min-height: min(calc(100svh - 56px), 1000px); display: flex; flex-direction: column; justify-content: center;
  align-items: center; overflow: hidden; padding: 48px 20px 230px; text-align: center; background: var(--surface); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 80%; z-index: -2; pointer-events: none;
  background: radial-gradient(40% 50% at 28% 40%, var(--accent-soft), transparent 70%), radial-gradient(35% 45% at 74% 32%, var(--match-bg), transparent 70%); }
.hero-inner { max-width: 1040px; position: relative; z-index: 1; }
.stage { position: relative; z-index: 2; background: var(--bg); scroll-margin-top: 56px; border-top: 1px solid var(--line); }
@media (min-width: 761px) and (min-height: 760px) {
  .hero { position: sticky; top: 56px; height: min(calc(100svh - 56px), 1000px); min-height: 0; }
  .stage { box-shadow: 0 -24px 60px rgb(0 0 0 / .18); }
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: 13px; color: var(--ink-2); }
.eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.06; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 750; }
.grad-text { background: linear-gradient(90deg, var(--accent), var(--match)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 680px; margin: 0 auto; }
.hero-live { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; min-height: 34px; }
.chip-live { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.chip-live b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.quick-label { margin: 22px 0 8px; font-size: 13px; color: var(--ink-3); }
.hero-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-quick button { border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.hero-quick button:hover { background: var(--accent); color: var(--accent-ink); }
.hero-quick .n { font-weight: 500; opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.hero-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px auto 0; max-width: 900px; text-align: left; }
.hero-feats > div { padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 1px solid var(--line); backdrop-filter: blur(6px); }
.hero-feats b { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hero-feats b svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-feats span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; }
.hero-feats b span { display: inline; font-size: inherit; color: var(--ink); margin: 0; }
.hero-skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: -1; pointer-events: none; }
.hero-skyline .hero-art { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: auto; height: 190px; margin: 0; }
.hero-water { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; opacity: .8;
  background: var(--art-water); -webkit-mask: var(--waves) repeat-x 0 6px / 48px 30px; mask: var(--waves) repeat-x 0 6px / 48px 30px;
  animation: tide 9s linear infinite; }
:root { --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 30'%3E%3Cpath d='M0 6q12-8 24 0t24 0M-12 22q12-6 24 0t24 0t24 0' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hero-go { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 650; text-decoration: none; color: var(--accent-ink);
  background: var(--accent); box-shadow: 0 6px 24px rgb(0 0 0 / .22); white-space: nowrap; }
.hero-go:hover { filter: brightness(1.08); }
.hero-go svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: bob 1.8s infinite; }
/* skyline draws itself once, then the crane load sways */
.hero-art.draw .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s .15s ease-out forwards; }
.hero-art.draw .fill, .hero-art.draw .sky, .hero-art.draw .load { opacity: 0; animation: fade .9s 1.4s forwards; }
.hero-art .load { transform-box: view-box; transform-origin: 352px 70px; animation: fade .9s 1.4s forwards, sway 5s 2.3s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes tide { to { -webkit-mask-position: 48px 6px; mask-position: 48px 6px; } }
@keyframes bob { 50% { transform: translateY(3px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 760px) {
  .hero { padding: 32px 16px 190px; min-height: auto; }
  .hero-feats { grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
  .hero-skyline { height: 170px; }
  .hero-skyline .hero-art { height: 140px; bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art.draw .line, .hero-art.draw .fill, .hero-art.draw .sky, .hero-art .load, .hero-water, .eyebrow .live, .hero-go svg {
    animation: none !important; stroke-dashoffset: 0; opacity: 1; }
}

/* search bar at the top of the board */
.searchbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 0; }
.searchrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search { flex: 1 1 420px; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 0 14px; color: var(--ink-3); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; border: 0; background: none; height: 48px; outline: none; min-width: 0; font-size: 16px; }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track .thumb { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch.big { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 50px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 48px; }
/* knowledge rail: below the results on normal screens, its own column from 1500px */
.rail { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-content: start; min-width: 0; }
.rail:empty { display: none; }
.rail-title { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 14px 2px -4px; }
@media (min-width: 1500px) {
  .wrap.layout { max-width: 1560px; grid-template-columns: 270px minmax(0, 1fr) 300px; }
  .rail { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; position: sticky; top: 72px; align-self: start;
    max-height: calc(100vh - 88px); overflow: auto; padding-right: 4px; }
  .rail-title { margin: 0 2px -4px; }
}
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 14.5px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.info-card h3 svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-card p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
.info-card p:last-child { margin-bottom: 0; }
.info-card b { color: var(--ink); }
.info-card ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.info-card li { margin-bottom: 6px; }
.info-card li:last-child { margin-bottom: 0; }
.info-card .small-print { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.kfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.kfacts > div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.kfacts .v { font-size: 18px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kfacts .k { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.bars { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 6px; }
.bars li { margin: 0 !important; }
.bars button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; width: 100%; cursor: pointer;
  font-size: 13px; color: var(--ink-2); padding: 3px 4px; border-radius: 6px; }
.bars button:hover { background: var(--surface-2); color: var(--ink); }
.bars button:focus-visible { outline: 2px solid var(--focus); }
.bars .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .n { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.bars .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bars .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
dl.types { margin: 0; font-size: 13.5px; }
dl.types dt { font-weight: 650; color: var(--ink); }
dl.types dd { margin: 0 0 10px; color: var(--ink-2); }
dl.types dd:last-child { margin-bottom: 0; }

/* ---------- filters ---------- */
.filters { align-self: start; position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; padding-right: 4px; }
.filters-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.filters-head h2 { font-size: 15px; margin: 0; }
.close-filters { display: none; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-size: 14px; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0; min-width: 0; }
legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
legend + * { clear: both; }
.hint { font-size: 13px; color: var(--ink-3); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 5px 11px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip .n { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.options { display: grid; gap: 2px; }
.options.scroll { max-height: 280px; overflow: auto; }
.opt { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.opt:hover { background: var(--surface-2); }
.opt input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.opt .n, .count { margin-left: auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.opt.zero { opacity: .45; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 4px 0; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.skill-input { display: flex; gap: 6px; margin-bottom: 8px; }
.skill-input input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px; }
.small { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.removable .chip { background: var(--match-bg); color: var(--match); border-color: transparent; }
.removable .chip::after { content: "✕"; font-size: 11px; }

/* ---------- results ---------- */
.results-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
#resultCount { margin: 0; font-weight: 600; flex: 1; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 14px; }
.sort select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 8px; color: var(--ink); }
.filter-toggle { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 600; }
.badge-count:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; margin-left: 4px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-filters:empty { display: none; }
.active-filters .chip { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.active-filters .chip::after { content: "✕"; font-size: 11px; opacity: .7; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.card-top { display: flex; gap: 12px; align-items: flex-start; }
.card-titles { flex: 1; min-width: 0; }
.title { font-size: 17px; line-height: 1.3; margin: 0 0 2px; overflow-wrap: anywhere; }
.title a { color: var(--ink); text-decoration: none; }
.title a:hover { color: var(--accent); text-decoration: underline; }
.meta { margin: 0; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.meta .company { font-weight: 600; color: var(--ink); }
.dot { margin: 0 6px; color: var(--ink-3); }
.save { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; color: var(--ink-3); }
.save svg { fill: none; stroke: currentColor; stroke-width: 2; }
.save[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.save[aria-pressed="true"] svg { fill: currentColor; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.badge { font-size: 12.5px; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.level { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.badge.new { background: var(--match-bg); color: var(--match); font-weight: 700; }
.badge.warn { background: var(--mid-bg); color: var(--mid); }
.lang-pill { font-size: 12.5px; padding: 3px 9px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.lang-pill.l0 { background: var(--ok-bg); color: var(--ok); }
.lang-pill.l1 { background: var(--mid-bg); color: var(--mid); }
.lang-pill.l2 { background: var(--no-bg); color: var(--no); }
.summary { margin: 10px 0 0; color: var(--ink-2); }
.summary:empty { display: none; }
.reqs { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.reqs:empty { display: none; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.skills:empty { display: none; }
.skill { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-3); }
.skill.hit { background: var(--match-bg); color: var(--match); border-color: transparent; font-weight: 600; }
.card-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.facts { flex: 1; color: var(--ink-3); font-size: 13.5px; }
.view { font-weight: 600; text-decoration: none; white-space: nowrap; }
.view:hover { text-decoration: underline; }
.more { display: flex; justify-content: center; margin-top: 18px; }
.secondary { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 18px; cursor: pointer; font-weight: 600; }
.secondary:hover { border-color: var(--accent); color: var(--accent); }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h3 { margin: 0 0 6px; color: var(--ink); }

/* ---------- footer & dialog ---------- */
.footer { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--ink-3); font-size: 13.5px; }
.footer p { margin: 4px 0; }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 24px; max-width: 560px; width: calc(100% - 32px);
  background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog h2 { margin-top: 0; }
.dialog-close { float: right; margin: -8px -8px 0 0; }
.steps { padding-left: 20px; color: var(--ink-2); }
.steps li { margin-bottom: 8px; }
.legend { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; }
.legend .lang-pill { display: inline-block; min-width: 110px; text-align: center; margin-right: 8px; }

/* ---------- small screens: filters become a drawer ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .rail { grid-column: 1; }
  .filter-toggle { display: inline-flex; align-items: center; }
  .filters { position: fixed; inset: 0 auto 0 0; top: 0; width: min(340px, 88vw); max-height: none; height: 100%; z-index: 40;
    background: var(--surface); padding: 16px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 40px rgb(0 0 0 / .25); }
  .filters.open { transform: none; }
  .close-filters { display: inline-grid; }
  /* overlay lives inside the board's stacking layer, so the drawer (z 40) stays above it */
  body.drawer-open .stage::after { content: ""; position: fixed; inset: 0; background: rgb(0 0 0 / .4); z-index: 30; }
  .switch.big { flex: 1 1 100%; }
  .results-head { flex-wrap: wrap; }
  #resultCount { order: 3; flex-basis: 100%; }
  .sort span { display: none; }
  .results-head .sort { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 440px) {
  .brand-name, .ghost { white-space: nowrap; }
  .top-actions a.icon-only { display: none; } /* GitHub link stays in the footer */
  .brand { gap: 8px; }
}

/* ---------- illustrations ---------- */
:root { --art-line: #334155; --art-glass: #dbeafe; --art-brick: #e7c3b0; --art-sun: #fde68a; --art-water: #0f766e;
  --box1: #0f766e; --box2: #f59e0b; --box3: #e11d48; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --art-line: #94a3b8; --art-glass: #1e3a5f; --art-brick: #5b3a2e; --art-sun: #a16207;
    --art-water: #2dd4bf; --box1: #14b8a6; --box2: #d97706; --box3: #be123c; }
}
:root[data-theme="dark"] { --art-line: #94a3b8; --art-glass: #1e3a5f; --art-brick: #5b3a2e; --art-sun: #a16207;
  --art-water: #2dd4bf; --box1: #14b8a6; --box2: #d97706; --box3: #be123c; }

.hero-art { display: block; overflow: visible; }
.hero-art .line { fill: none; stroke: var(--art-line); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .thin { stroke-width: 1.2; opacity: .6; }
.hero-art .glass { fill: var(--art-glass); }
.hero-art .brick { fill: var(--art-brick); stroke: var(--art-line); stroke-width: 2.2; }
.hero-art .box { stroke: var(--art-line); stroke-width: 1.6; }
.hero-art .c1 { fill: var(--box1); } .hero-art .c2 { fill: var(--box2); } .hero-art .c3 { fill: var(--box3); }
.hero-art .sun { fill: var(--art-sun); }
.hero-art .cloud { fill: none; stroke: var(--art-line); stroke-width: 2; stroke-linecap: round; opacity: .35; }

/* company initials tile */
.avatar { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-weight: 800;
  font-size: 15px; letter-spacing: .02em; background: hsl(var(--h, 170) 55% 92%); color: hsl(var(--h, 170) 50% 28%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar { background: hsl(var(--h, 170) 30% 22%); color: hsl(var(--h, 170) 70% 82%); }
}
:root[data-theme="dark"] .avatar { background: hsl(var(--h, 170) 30% 22%); color: hsl(var(--h, 170) 70% 82%); }
@media (max-width: 440px) { .avatar { display: none; } } /* keeps the title readable on narrow phones */

/* how-it-works steps */
.steps { list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.steps svg { flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--accent-soft);
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* empty state */
.empty-art { width: 120px; height: 90px; margin-bottom: 8px; }
.empty-art .e-card { fill: var(--surface-2); stroke: var(--line); stroke-width: 2; }
.empty-art .e-line { stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.empty-art .e-lens { fill: var(--surface); stroke: var(--accent); stroke-width: 4; }
.empty-art .e-handle { stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.empty-art .e-x { stroke: var(--no); stroke-width: 3; stroke-linecap: round; }

/* Adzuna attribution (required by their API terms): at least 116x23 px */
.attrib { display: inline-flex; align-items: center; gap: 4px; min-height: 23px; min-width: 116px; font-size: 13px; color: var(--ink-3); }
.attrib a { color: var(--ink-2); display: inline-flex; align-items: center; }
.attrib img { height: 40px; width: auto; display: block; } /* stacked logo: 40px keeps the wordmark readable */
.adzuna-word { color: #2e6ca8; font-size: 16px; letter-spacing: -.01em; }


/* ---------- language switch ---------- */
.lang-btn { font-weight: 600; }
.lang-btn .short { display: none; }
#aboutBtn .short { display: none; }
@media (max-width: 520px) {
  .lang-btn .long, #aboutBtn .long { display: none; }
  .lang-btn .short { display: inline; }
  #aboutBtn .short { display: block; }
  .back-link { display: none; } /* the logo and the footer link lead home */
  #aboutBtn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; }
  .card-foot { flex-wrap: wrap; row-gap: 6px; }
  .facts { flex-basis: 100%; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }
.legal h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 4px; }
.legal h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--ink-3); font-size: 14px; margin: 0 0 20px; }
.storage { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 14px; }
.storage th, .storage td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.storage th { color: var(--ink-3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.storage code { font-size: 13px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
