/* FiledFor. Tokens first; dark values are their own steps, not an inversion.
   The wage-level ramp (l1-l4) is one hue, light to dark, validated for both
   surfaces with the dataviz palette checker. */

:root {
  color-scheme: light;
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f1f2ef;
  --ink: #111412;
  --ink-2: #4b514d;
  --muted: #747a76;
  --line: #e3e5e0;
  --line-strong: #cfd3cd;
  --brand: #1f7a52;
  --brand-hover: #18643f;
  --brand-ink: #ffffff;
  --brand-soft: #e5f2eb;
  --new: #1f7a52;
  --shadow: 0 1px 2px rgba(17, 20, 18, 0.05), 0 2px 8px rgba(17, 20, 18, 0.04);
  --shadow-lg: 0 12px 40px rgba(17, 20, 18, 0.18);
  --l1: #86b6ef;
  --l2: #5598e7;
  --l3: #2a78d6;
  --l4: #1c5cab;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e100f;
    --surface: #171a18;
    --surface-2: #1f2321;
    --ink: #eef1ee;
    --ink-2: #c3c8c4;
    --muted: #8c938e;
    --line: #2a2f2c;
    --line-strong: #3b413d;
    --brand: #4cc38a;
    --brand-hover: #63d19c;
    --brand-ink: #06140d;
    --brand-soft: #17301f;
    --new: #4cc38a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --l1: #184f95;
    --l2: #256abf;
    --l3: #3987e5;
    --l4: #6da7ec;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e100f;
  --surface: #171a18;
  --surface-2: #1f2321;
  --ink: #eef1ee;
  --ink-2: #c3c8c4;
  --muted: #8c938e;
  --line: #2a2f2c;
  --line-strong: #3b413d;
  --brand: #4cc38a;
  --brand-hover: #63d19c;
  --brand-ink: #06140d;
  --brand-soft: #17301f;
  --new: #4cc38a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --l1: #184f95;
  --l2: #256abf;
  --l3: #3987e5;
  --l4: #6da7ec;
}

/* --- base ---------------------------------------------------------------- */

* { 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);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.pill {
  display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* --- top bar --------------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 17px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; stroke: none; }
.brand svg rect { fill: var(--brand); }
.brand svg path { fill: var(--brand-ink); }
.brand:hover { color: var(--ink); }
.topnav { display: flex; align-items: center; gap: 2px; }
.navlink {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 0; border-radius: 8px; background: none; color: var(--ink-2); text-decoration: none; font-weight: 550;
}
.navlink:hover { background: var(--surface-2); color: var(--ink); }
.navlink[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.navlink.icon-only { padding: 0 9px; }
#theme .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #theme .sun { display: block; } :root:not([data-theme="light"]) #theme .moon { display: none; } }
:root[data-theme="dark"] #theme .sun { display: block; }
:root[data-theme="dark"] #theme .moon { display: none; }

/* --- hero -------------------------------------------------------------------- */

.hero { padding-top: 56px; padding-bottom: 36px; text-align: center; }
.hero h1 {
  margin: 0 auto 14px; font-size: clamp(26px, 3.3vw, 42px); line-height: 1.12;
  letter-spacing: -0.03em; font-weight: 750; text-wrap: balance;
}
.lead { margin: 0 auto 18px; max-width: 920px; color: var(--ink-2); font-size: 17px; text-wrap: balance; }
.status { margin: 0; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.status b { color: var(--ink); font-weight: 650; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px var(--brand-soft); }

/* --- layout ----------------------------------------------------------------- */

.layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 32px; }
.mobile-only { display: none !important; }

/* --- filters ----------------------------------------------------------------- */

.filters { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; padding: 4px 2px 16px; scrollbar-width: thin; }
.filters[inert] { opacity: 0.45; }
.filters-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.filters-head h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); flex: 1; }
.linkbtn { border: 0; background: none; color: var(--brand); padding: 4px 6px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.linkbtn:hover { background: var(--brand-soft); }
.group { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.group legend { font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 8px; padding: 0; display: flex; align-items: center; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 550;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { height: 30px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.toggle { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.toggle input { margin: 3px 0 0; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.place-search, .search input {
  width: 100%; height: 36px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); padding: 0 10px; font-size: 14px;
}
.place-search:focus, .search input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.placelist { margin-top: 6px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.placelist h4 { margin: 0; padding: 8px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.place { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: 0; background: none; text-align: left; font-size: 13.5px; color: var(--ink-2); }
.place:hover { background: var(--surface-2); color: var(--ink); }
.place input { accent-color: var(--brand); margin: 0; pointer-events: none; }
.place .n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.place-empty { padding: 10px; color: var(--muted); font-size: 13px; }
.selected-places { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.selected-places:empty { display: none; }
.tagx { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--brand-soft); color: var(--ink); border: 0; font-size: 12.5px; font-weight: 600; }
.tagx svg { width: 14px; height: 14px; }

/* --- results ------------------------------------------------------------------- */

.results:focus { outline: none; }
.searchrow { display: flex; gap: 8px; margin-bottom: 12px; }
.search { position: relative; flex: 1; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { height: 44px; padding-left: 38px; font-size: 15px; border-radius: 11px; box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 600;
}
.btn:hover { border-color: var(--ink-2); }
.btn.ghost { border-color: transparent; background: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn svg { width: 16px; height: 16px; }
.resultbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 8px; }
.count { margin: 0; font-weight: 650; font-size: 14px; }
.count span { color: var(--muted); font-weight: 500; }
.newbadge { border: 1px solid transparent; background: var(--brand-soft); color: var(--ink); border-radius: 999px; height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 650; }
.newbadge[aria-pressed="true"] { border-color: var(--brand); }
.resultbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sort { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.sort select { height: 32px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.legend-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 2px; }
.key { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; }
.sw { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
.sw.l1, .seg.l1 { background: var(--l1); }
.sw.l2, .seg.l2 { background: var(--l2); }
.sw.l3, .seg.l3 { background: var(--l3); }
.sw.l4, .seg.l4 { background: var(--l4); }

/* --- job row --------------------------------------------------------------------- */

.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.job {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px;
  padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.job:hover { border-color: var(--line-strong); }
.job.applied { opacity: 0.62; }
.logo {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 750; font-size: 15px; letter-spacing: -0.02em;
}
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; }
.logo.m0 { background: #e8f0fb; color: #1d4f91; } .logo.m1 { background: #fbece5; color: #8f3b16; }
.logo.m2 { background: #e5f5ee; color: #155f43; } .logo.m3 { background: #f6efdc; color: #7a5a00; }
.logo.m4 { background: #f8e8ef; color: #8c2a54; } .logo.m5 { background: #ece9f8; color: #3f3399; }
.logo.m6 { background: #e3f3f5; color: #155e69; } .logo.m7 { background: #efefec; color: #4b514d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo.m0 { background: #16263b; color: #9cc3f2; } :root:not([data-theme="light"]) .logo.m1 { background: #3a2219; color: #f2b398; }
  :root:not([data-theme="light"]) .logo.m2 { background: #133026; color: #8ed8b5; } :root:not([data-theme="light"]) .logo.m3 { background: #352c12; color: #e8c86e; }
  :root:not([data-theme="light"]) .logo.m4 { background: #36202a; color: #efa6c4; } :root:not([data-theme="light"]) .logo.m5 { background: #24203d; color: #b7adf0; }
  :root:not([data-theme="light"]) .logo.m6 { background: #142f33; color: #8fd3dc; } :root:not([data-theme="light"]) .logo.m7 { background: #252826; color: #c3c8c4; }
}
:root[data-theme="dark"] .logo.m0 { background: #16263b; color: #9cc3f2; } :root[data-theme="dark"] .logo.m1 { background: #3a2219; color: #f2b398; }
:root[data-theme="dark"] .logo.m2 { background: #133026; color: #8ed8b5; } :root[data-theme="dark"] .logo.m3 { background: #352c12; color: #e8c86e; }
:root[data-theme="dark"] .logo.m4 { background: #36202a; color: #efa6c4; } :root[data-theme="dark"] .logo.m5 { background: #24203d; color: #b7adf0; }
:root[data-theme="dark"] .logo.m6 { background: #142f33; color: #8fd3dc; } :root[data-theme="dark"] .logo.m7 { background: #252826; color: #c3c8c4; }

.job-main { min-width: 0; }
.job-title { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.35; letter-spacing: -0.005em; }
.job-title a { color: var(--ink); text-decoration: none; }
.job-title a:hover { color: var(--brand); text-decoration: underline; }
.meta { margin: 3px 0 8px; color: var(--ink-2); font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.meta .sep { color: var(--line-strong); }
.company-btn { border: 0; background: none; padding: 0; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.company-btn:hover { color: var(--brand); text-decoration-color: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.tag.new { background: var(--new); color: var(--surface); }
.tag.done { background: var(--brand-soft); color: var(--ink); }
.ev { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.ev.none { color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
.stat b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.bar { display: flex; gap: 2px; width: 132px; height: 8px; flex: none; border-radius: 4px; overflow: hidden; }
.bar .seg { height: 100%; min-width: 3px; }
.bar .seg:hover { filter: brightness(1.12); }
.actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.icons { display: flex; gap: 2px; }
.iconbtn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn[aria-pressed="true"] { color: var(--brand); }
.iconbtn[aria-pressed="true"].save svg { fill: currentColor; }
.apply { height: 32px; padding: 0 12px; font-size: 13px; text-decoration: none; white-space: nowrap; }
.apply svg { width: 14px; height: 14px; }
.empty, .skeleton { list-style: none; }
.empty { padding: 40px 16px; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.skeleton { height: 118px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.more { display: flex; margin: 16px auto 0; }

/* --- info buttons, popover, tooltip, toast ------------------------------------- */

.info {
  width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--muted); font-size: 10.5px; font-weight: 750; line-height: 1; display: inline-grid; place-items: center; padding: 0; flex: none;
}
.info:hover { color: var(--ink); border-color: var(--ink-2); }
.popover, .tip {
  position: fixed; z-index: 60; max-width: 300px; padding: 10px 12px; border-radius: 10px;
  background: var(--ink); color: var(--surface); font-size: 13px; line-height: 1.45; box-shadow: var(--shadow-lg);
}
.popover strong { display: block; margin-bottom: 2px; }
.tip { pointer-events: none; padding: 6px 9px; font-size: 12.5px; }
.tip b { font-variant-numeric: tabular-nums; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70;
  background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
}

/* --- company panel -------------------------------------------------------------------- */

.panel {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(560px, 100vw); max-width: 100vw;
  padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.panel::backdrop { background: rgba(10, 12, 11, 0.45); }
.panel[open] { animation: slidein 0.18s ease-out; }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .panel[open] { animation: none; } }
.panel-inner { padding: 20px 22px 32px; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; flex: 1; }
.closebtn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); }
.closebtn:hover { color: var(--ink); border-color: var(--ink-2); }
.panel-summary { margin: 0 0 16px; color: var(--ink-2); }
.panel-summary b { color: var(--ink); }
.field-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.field-card h3 { margin: 0 0 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.field-card .none { color: var(--muted); font-size: 13.5px; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.tile .label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.tile .value { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.field-card .bar { width: 100%; height: 10px; }
.levels { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.levels th, .levels td { text-align: left; padding: 2px 0; font-weight: 500; }
.levels th { color: var(--muted); }
.levels td { color: var(--ink); font-weight: 600; }
.levels .sw { margin-right: 5px; }
.panel h4 { margin: 20px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.roles { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.roles li + li { border-top: 1px solid var(--line); }
.roles a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.roles a:hover { background: var(--surface-2); }
.roles .sub { display: block; font-size: 12.5px; color: var(--muted); }
.panel-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fineprint { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* --- about + footer ----------------------------------------------------------------- */

.about { padding-top: 36px; padding-bottom: 24px; border-top: 1px solid var(--line); }
.about h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 16px; }
.about h3 { font-size: 15px; margin: 26px 0 8px; }
.about p, .about li { color: var(--ink-2); max-width: 72ch; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.about-grid h3 { margin-top: 0; }
.defs { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; margin: 0; max-width: 860px; }
.defs dt { font-weight: 650; }
.defs dd { margin: 0; color: var(--ink-2); }
.feeds { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 32px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* --- small screens ----------------------------------------------------------------- */

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .mobile-only { display: inline-flex !important; }
  .filters {
    position: fixed; inset: 0; z-index: 40; max-height: none; background: var(--bg); padding: 16px 16px 88px;
    transform: translateY(100%); visibility: hidden; transition: transform 0.2s ease, visibility 0s 0.2s;
  }
  body.filters-open .filters { transform: none; visibility: visible; transition: transform 0.2s ease; }
  body.filters-open { overflow: hidden; }
  .filters-head h2 { font-size: 15px; color: var(--ink); text-transform: none; letter-spacing: 0; }
  .show-results { position: fixed; left: 16px; right: 16px; bottom: 16px; height: 48px; font-size: 15px; }
  .placelist { max-height: 40vh; }
}
@media (max-width: 640px) {
  .hero { padding-top: 28px; padding-bottom: 20px; }
  .hero h1 { margin-bottom: 12px; }
  .lead { display: none; } /* the headline says enough on a phone */
  .hide-sm { display: none !important; }
  .job { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .logo { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; }
  .actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
  .resultbar-right { margin-left: 0; width: 100%; justify-content: space-between; }
  #copy-link span { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .defs { grid-template-columns: 1fr; }
  .defs dd { margin-bottom: 8px; }
  .panel-inner { padding: 16px; }
  .footer { flex-direction: column; }
}
