:root {
  color-scheme: light dark;
  --bg: #f6f8f4;
  --surface: #ffffff;
  --ink: #0a1226;
  --muted: #5a6478;
  --line: #e1e6dc;        /* dividers and card outlines */
  --edge: #8793a6;        /* outlines of things you type in or pick from: 3:1 against the surface */
  --navy: #0a1226;
  --navy-2: #13213f;
  --lime: #8be04a;        /* the one accent: Apply and Join */
  --lime-ink: #1d3a07;
  --lime-soft: #eaf8dc;
  --teal: #177383;        /* links and role facts: 4.8:1 on its soft tint, 5.5:1 on white */
  --teal-soft: #e2f4f7;
  --danger: #c53030;
  --foot: #eef4e8;
  --brand-accent: #3d8a14;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --z-sheet: 20;
  --z-notice: 50;
  --z-skip: 60;
  --ease-out: cubic-bezier(.22, 1, .36, 1);   /* quick start, soft landing */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070c18; --surface: #0f1729; --ink: #eef2f8; --muted: #9aa5bb; --line: #1f2a40; --edge: #5b6780;
    --lime-soft: #1b2c10; --lime-ink: #c6f39d; --teal: #60cde0; --teal-soft: #0f2a31; --danger: #ff9a9a;
    --foot: #0a1120; --brand-accent: #8be04a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
a { color: var(--teal); }
button, input, select { font: inherit; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }   /* fills a laptop screen; stops growing on very wide monitors so cards stay readable */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.narrow { display: none; }
.skip { position: absolute; left: 16px; top: -64px; z-index: var(--z-skip); background: var(--lime); color: #0a1226; padding: 10px 16px; border-radius: var(--r-s); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
::placeholder { color: var(--muted); opacity: 1; }

/* buttons: lime means "apply" or "join"; everything else is quiet */
.primary, .ghost, .solid {
  border-radius: 999px; padding: 10px 18px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.primary { background: var(--lime); color: #0a1226; border: 0; }
.primary:hover { filter: brightness(1.06); }
.solid { background: var(--ink); color: var(--bg); border: 0; }
.solid:hover { opacity: .88; }
.ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.link { background: none; border: 0; color: var(--teal); cursor: pointer; padding: 0; font-weight: 500; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.top :focus-visible { outline-color: var(--lime); }     /* on the navy band the teal ring would vanish */
main:focus, section:focus, aside:focus { outline: 0; }  /* focus sent here by script, not by the visitor */

/* header */
.top { background: radial-gradient(120% 140% at 0% 0%, #0c3c4e 0%, var(--navy) 55%), var(--navy); color: #f7f9fc; padding-bottom: 40px; }
.top-row { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 600 18px var(--display); }
.brand img { width: 36px; height: 36px; border-radius: var(--r-s); }
.brand b { color: var(--lime); }
nav { display: flex; gap: 10px; }
.navlink { color: #c3cbe0; text-decoration: none; font-weight: 500; align-self: center; padding: 8px 6px; }
.navlink:hover, .navlink[aria-current] { color: #fff; }
.navlink[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.hero { padding-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(118px, 1fr)); border: 1px solid rgb(255 255 255 / 14%); border-radius: var(--r-l); background: rgb(255 255 255 / 5%); overflow: hidden; }
.stats div { padding: 14px 18px; border: 0 solid rgb(255 255 255 / 12%); }
.stats div:nth-child(odd) { border-right-width: 1px; }
.stats div:nth-child(-n+2) { border-bottom-width: 1px; }
.stats dt { font-size: 13px; font-weight: 500; color: #a9b8d1; }
.stats dd { margin: 2px 0 0; font: 700 26px/1.1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--lime); margin: 0 0 10px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.08; max-width: 14ch; }
.join-hero { display: none; margin-top: 4px; padding: 10px 0; color: var(--lime); font-weight: 600; font-size: 15px; text-decoration: none; }
.hero .sub { color: #c3cbe0; max-width: 56ch; margin: 14px 0 24px; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 680px; }
.search:focus-within { outline: 3px solid var(--lime); outline-offset: 2px; }
.search svg { width: 20px; height: 20px; fill: none; stroke: #5a6478; stroke-width: 2; flex: none; }
.search input { flex: 1; border: 0; outline: 0; min-width: 0; color: #0a1226; background: transparent; padding: 8px 0; }
.search input::placeholder { color: #5a6478; }
.search button { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; cursor: pointer; background: #0a1226; color: #fff; }
.search button:hover { background: var(--navy-2); }

/* job pages, resources and the "role closed" page share a slim header */
.top.slim { padding-bottom: 0; }
.jobpage { padding-top: 28px; padding-bottom: 40px; }
.jobpage > * { max-width: 760px; }
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 14px; }

/* a job page: navy band with the role, then what the board knows beside a summary box */
.jhero { padding-top: 14px; padding-bottom: 30px; }
.jhero .crumb, .jhero .crumb a { color: #a9b8d1; }
.jhero .crumb a:hover { color: #fff; }
.jhero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; }
.jhero-co { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font: 600 20px var(--body); color: #dfe6f3; }
.jhero h1 { font-size: clamp(28px, 4.6vw, 40px); max-width: 22ch; }
.jhero-meta { margin: 12px 0 0; color: #c3cbe0; font-size: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pills span { font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 22%); color: #dfe6f3; }
.pills .pk { border-color: var(--lime); color: var(--lime); }
.jhero-cta { display: grid; gap: 8px; min-width: 260px; }
.jhero-more { display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: center; }
.jhero .act { color: #c3cbe0; }
.jhero .act:hover, .jhero .act[aria-pressed="true"] { color: var(--lime); }
.assure { margin: 0; font-size: 13px; color: #a9b8d1; text-align: center; }
.jobgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-top: 28px; padding-bottom: 8px; }
.jobmain { display: grid; gap: 20px; min-width: 0; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; }
.box h2 { font-size: 20px; margin-bottom: 12px; }
.box p { margin: 0; max-width: 68ch; }
.box .tags { margin-top: 0; }
.box .hint { font-size: 14px; margin-top: 10px; }
a.tag.skill { text-decoration: none; }
a.tag.skill:hover { border-color: var(--teal); color: var(--teal); }
.snapshot { position: sticky; top: 16px; }
.snapshot dl { margin: 0 0 18px; }
.snapshot dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.snapshot dt { color: var(--muted); font-size: 14px; }
.snapshot dd { margin: 0; font-weight: 600; font-size: 14px; text-align: right; }
.snapshot dd a { color: inherit; text-underline-offset: 3px; }
.snapshot dd a:hover { color: var(--teal); }
.snapshot .primary { display: flex; padding: 12px 18px; }
.snapshot .hint { text-align: center; }
.jobgrid .pass { grid-column: 1 / -1; margin: 8px 0 0; }
.jobgrid .mini { border-top: 0; }
.jobgrid .mini li:last-child { border-bottom: 0; padding-bottom: 0; }

/* company letter tile */
.logo { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); font: 700 18px var(--display); background: hsl(var(--h) 62% 91%); color: hsl(var(--h) 48% 28%); border: 1px solid hsl(var(--h) 45% 82%); }
.jobpage h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.jobpage h2 { font-size: 21px; margin: 32px 0 10px; }
.jobpage-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.jobpage .pass { margin: 36px 0 0; max-width: none; }
.jobpage .pass h2 { margin-top: 0; }
.mini { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mini li { display: flex; justify-content: space-between; align-items: baseline; gap: 2px 16px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mini a { font-weight: 600; color: var(--ink); text-decoration: none; }
.mini a:hover { color: var(--teal); text-decoration: underline; }
.mini span { color: var(--muted); font-size: 14px; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose h3 { font-size: 17px; margin: 20px 0 4px; }
/* practice links: a plain two-column list, not a wall of boxes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.cards a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.cards a:hover { color: var(--teal); }
.cards a span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }

/* resources: a reading page. Contents down the side, one calm column of text */
.rhero h1 { max-width: 20ch; }
.rhero .jhero-meta { max-width: 56ch; font-size: 16px; }
.res { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 56px; align-items: start; padding-top: 36px; padding-bottom: 8px; }
.toc { display: block; position: sticky; top: 20px; font-size: 15px; }   /* block: the site-wide nav rule would lay it out as a row */
.toc p { margin: 0 0 8px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.toc a { display: block; padding: 8px 12px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.toc a:hover { background: var(--surface); color: var(--teal); }
.res-body { display: grid; gap: 48px; max-width: 720px; min-width: 0; }
.res-body section { scroll-margin-top: 20px; }
.res-body h2 { font-size: 26px; }
.res-body .lede { margin: 8px 0 20px; color: var(--muted); max-width: 60ch; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checks li::before { content: "\2713"; grid-row: 1 / 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime-soft); color: var(--lime-ink); font-weight: 700; font-size: 14px; }
.checks b { font-weight: 600; }
.checks span { grid-column: 2; color: var(--muted); margin-top: 2px; }
.topic { padding: 20px 0; border-top: 1px solid var(--line); }
.topic:last-child { padding-bottom: 0; }
.topic h3 { font: 600 18px var(--body); margin-bottom: 10px; }
.topic ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.topic li { padding-left: 4px; }
.topic li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.res .cards a { position: relative; padding-right: 30px; }
.res .cards a::after { content: "\2197"; position: absolute; right: 6px; top: 12px; color: var(--muted); font-weight: 400; }
.res .cards a:hover::after { color: var(--teal); }
.res .cards a span { margin-top: 2px; }
.callout { background: var(--lime-soft); border-radius: var(--r-l); padding: 26px 28px; }
.callout h2 { font-size: 22px; margin-bottom: 12px; }
.callout ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.callout b { font-weight: 600; }
.res .pass { margin: 0; }
/* terms, privacy and listing policy: the same reading layout */
.legal h2 { font-size: 22px; margin-bottom: 10px; }
.legal p { margin: 0 0 12px; max-width: 66ch; }
.legal ul:not(.checks) { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; max-width: 66ch; }
.legal .checks { margin-bottom: 16px; }
.legal b { font-weight: 600; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.foot-bottom .foot-legal .link { margin-left: 0; }

/* layout */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 40px; }
.results { min-width: 0; }
.filters { align-self: start; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 16px 8px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.filters-head div { display: flex; align-items: center; gap: 4px; }
.filters h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.filters h2 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 10px; }
legend { float: left; width: 100%; font-weight: 600; font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 6px; }
legend + * { clear: both; }
fieldset label { display: flex; gap: 10px; align-items: center; padding: 7px 10px; margin: 3px -6px;   /* 3px: two ticked rows must not fuse into one block */ border-radius: var(--r-s); color: var(--ink); font-size: 15px; cursor: pointer; }
fieldset label:hover { background: var(--bg); }
fieldset label:has(input:checked) { background: var(--lime-soft); font-weight: 600; }
fieldset label:has(input[value=""]:checked) { background: none; font-weight: 400; }
fieldset input { accent-color: var(--teal); width: 16px; height: 16px; flex: none; }
fieldset label .n { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-head p { margin: 0; color: var(--muted); }
.results-head strong { color: var(--ink); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.tools { display: flex; gap: 10px; align-items: center; }
.sort { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
/* our own arrow, with room around it: the browser's sits against the edge */
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  border: 1px solid var(--edge); border-radius: 999px; padding: 9px 40px 9px 16px; color: var(--ink); font-weight: 500;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
select:hover { border-color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chips:empty { margin: 0; }
.chips button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.chips button::after { content: " \00d7"; color: var(--muted); }

/* quick filters above the list */
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.q { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--edge); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 5px 13px; font-size: 14px; font-weight: 500; cursor: pointer; }
.q:hover { border-color: var(--teal); color: var(--ink); }
.q[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #f7f9fc; }
.companies { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.companies > span { flex: none; min-width: 88px; font-weight: 600; }
/* the chips arrive with the job data: hold their space so the list below does not jump */
#quick-row { min-height: 78px; }
.results #companies { min-height: 38px; }

/* job cards */
.list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px 22px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; transition: border-color .15s, box-shadow .15s; }
@media (hover: hover) {
  .job:hover { border-color: var(--teal); box-shadow: 0 6px 22px rgb(10 18 38 / 7%); }
}
.job-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.co { color: var(--muted); margin: 0; }
.job-top .co { flex: 1 1 150px; min-width: 0; display: grid; line-height: 1.3; }
.job-top .co b { color: var(--ink); font-weight: 600; font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.job-top .co span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when, .new, .done { flex: none; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.when.fresh { background: var(--lime-soft); border-color: transparent; color: var(--lime-ink); font-weight: 600; }
.new { border-color: currentColor; color: var(--lime-ink); font-weight: 600; }
.done { background: var(--teal-soft); border-color: transparent; color: var(--teal); font-weight: 600; }
.job h3 { font-size: 20px; font-weight: 600; line-height: 1.25; grid-column: 1; }
.job h3 a { color: inherit; text-decoration: none; }
.job h3 a:hover { text-decoration: underline; }
.job.is-applied h3 a { color: var(--muted); }              /* quieter, still readable: no fading the whole card */
.job-cta { grid-column: 2; grid-row: 1 / 4; display: flex; flex-direction: column; gap: 8px; align-self: start; }
.job-cta > * { padding: 9px 18px; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; grid-column: 1; }
.tag { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.tag.pk { background: var(--lime-soft); color: var(--lime-ink); }
.tag.skill { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.tag.abroad { background: transparent; color: var(--ink); border: 1px dashed var(--edge); }
/* a skill on a card filters the list, so it is drawn like the other things that respond: a firm outline */
button.tag.skill, a.tag.skill { border-color: var(--edge); cursor: pointer; font-family: inherit; }
button.tag.skill:hover { border-color: var(--teal); color: var(--teal); }
button.tag.skill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #f7f9fc; }
.acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.act { background: none; border: 0; padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; text-decoration: none; }
.act:hover, .act[aria-pressed="true"] { color: var(--teal); }
.i { width: 16px; height: 16px; margin-right: 5px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[aria-pressed="true"] > .i-star { fill: currentColor; }
.via { margin-left: auto; min-width: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); padding: 4px 0; }
/* placeholders while the list loads, so the page does not say "0 roles" and then jump */
.skel { grid-template-columns: 1fr; min-height: 172px; align-content: start; gap: 14px; }
.skel span { display: block; height: 14px; width: 38%; border-radius: 999px; background: var(--line); }
.skel span:nth-child(2) { height: 20px; width: 68%; }
.skel span:nth-child(3) { width: 52%; }
@media (prefers-reduced-motion: no-preference) {
  .skel span { animation: wait 1.1s ease-in-out infinite alternate; }
  @keyframes wait { to { opacity: .45; } }
}

.abroad-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
/* the cookie notice, when it sits in the list on a phone */
.slot .consent { position: static; max-width: none; margin: 0; box-shadow: none; }
.slot:has(.consent[hidden]) { display: none; }

/* pages under the list */
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; }
.pager p { margin: 0; color: var(--muted); font-size: 14px; }
.pager b { color: var(--ink); font-weight: 600; }
.pages { display: flex; align-items: center; gap: 6px; }
.pages button { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--edge); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; }
.pages button:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.pages button[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pages button:disabled { opacity: .5; cursor: default; }
.pages > span { color: var(--muted); padding: 0 2px; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.empty p { margin: 0 0 16px; }
.empty .ghost { color: var(--ink); border-color: var(--edge); }

/* suggest band, questions, footer */
.pass { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--lime-soft); border-radius: var(--r-l); padding: 28px; margin-bottom: 32px; }
.pass h2 { font-size: 24px; }
.pass p { margin: 6px 0 0; color: var(--muted); }
.faq { margin-bottom: 32px; }
.faq > * { max-width: 760px; }
.faq h2 { font-size: 24px; margin-bottom: 10px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); max-width: 68ch; }
.foot { margin-top: 24px; background: var(--foot); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--teal); text-decoration: underline; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding: 30px 0 24px; }
.foot-top .brand { font-size: 20px; }
.foot-top .brand:hover { text-decoration: none; color: var(--ink); }
.foot-top .brand b { color: var(--brand-accent); }
.foot-top p { margin: 10px 0 0; max-width: 52ch; }
.foot-top .primary, .foot-top .primary:hover { color: #0a1226; text-decoration: none; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.foot h2 { font: 600 15px var(--body); color: var(--ink); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; padding: 20px 0; border-top: 1px solid var(--line); }
.foot-src span { font-weight: 600; color: var(--ink); }
.foot-src a { color: var(--muted); }
.foot-bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; padding: 18px 0 28px; border-top: 1px solid var(--line); }
.foot-bottom p { margin: 0; }
.foot-bottom p a { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom .link { font-size: inherit; margin-left: 10px; }

/* suggest-a-job dialog */
dialog { border: 0; border-radius: var(--r-l); padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgb(5 9 20 / .55); }
dialog form { padding: 22px; display: grid; gap: 12px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h2 { font-size: 22px; }
.x { display: grid; place-items: center; width: 40px; height: 40px; margin: -6px -8px -6px 0; background: none; border: 0; border-radius: var(--r-s); font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.x:hover { color: var(--ink); }
dialog .sub { margin: -6px 0 2px; color: var(--muted); font-size: 14px; }
dialog label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
dialog label i { font-style: normal; font-weight: 400; color: var(--muted); }
dialog input, dialog select { border: 1px solid var(--edge); border-radius: var(--r-s); padding: 10px 12px; background-color: var(--bg); color: var(--ink); width: 100%; }
dialog select { padding-right: 40px; font-weight: 400; }
dialog input:user-invalid { border-color: var(--danger); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req { color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 400; }
.field-error:empty { display: none; }
dialog input[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: 14px; min-height: 1.2em; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--lime-ink); }
.dlg-foot { display: flex; justify-content: flex-end; }

.only-mobile { display: none; }

/* cookie notice */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-notice); max-width: 560px; margin: 0 auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: 0 8px 24px rgb(10 18 38 / 16%); padding: 14px 16px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.consent p { margin: 0; font-size: 14px; color: var(--muted); flex: 1 1 260px; }
.consent div { display: flex; gap: 8px; }

@media (max-width: 820px) {
  .narrow { display: inline; }
  .wide { display: none; }
  .only-mobile { display: inline-flex; }
  .wrap { padding: 0 16px; }

  /* a slim top, so a whole job and its Apply button fit on the first screen */
  .top { padding-bottom: 18px; }
  .top-row { padding-top: 10px; padding-bottom: 10px; }
  .top-row .ghost { padding: 9px 14px; font-size: 15px; }
  .navlink { font-size: 15px; padding: 12px 6px; }
  #join { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 6px; }
  .eyebrow, .stats { display: none; }
  .hero h1 { font-size: 26px; max-width: none; }
  .hero .sub { margin: 6px 0 14px; font-size: 15px; }
  .search { padding: 4px 4px 4px 14px; }
  .join-hero:not([hidden]) { display: inline-block; }

  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .results-head { flex-wrap: nowrap; }
  #updated, .sort span { display: none; }
  .tools { gap: 8px; }
  .tools .ghost { padding: 9px 16px; border-color: var(--edge); }
  select { padding: 10px 36px 10px 14px; }
  .companies { margin-top: 10px; }
  .companies > span, .results #companies { display: none; }
  #quick-row { min-height: 49px; }
  .quick { flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: calc(100% + 16px); margin-right: -16px; padding: 2px 16px 2px 0; scrollbar-width: none; }
  .quick::-webkit-scrollbar { display: none; }
  /* the row scrolls sideways: fade its right edge so it is clear there is more */
  .quick { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  .q { flex: none; padding: 11px 16px; }
  .chips button { padding: 11px 14px; font-size: 14px; }
  .list { margin-top: 12px; }

  /* the filters become a full-screen sheet. stretch: with the desktop "align-self: start" it
     grew to its content, taller than the screen, and could not scroll to "Show jobs" */
  .filters {
    position: fixed; inset: 0; z-index: var(--z-sheet); align-self: stretch; max-height: none;
    background: var(--bg); border: 0; border-radius: 0; padding: 12px 16px 16px; overflow-y: auto;
    transform: translateY(100%); visibility: hidden; transition: transform .2s cubic-bezier(.4, 0, 1, 1), visibility 0s .2s;   /* leaves faster than it arrives */
  }
  .filters.open { transform: none; visibility: visible; transition: transform .3s var(--ease-out); }
  .filters #apply-filters { width: 100%; margin-top: 12px; padding: 13px 18px; position: sticky; bottom: 0; box-shadow: 0 -12px 20px var(--bg); }
  fieldset label { padding: 12px 10px; }
  .link { min-height: 44px; }

  .job { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 6px; }
  .job-cta { grid-column: 1; grid-row: auto; flex-direction: row; margin-top: 4px; }
  .job-cta > * { flex: 1; padding: 12px 18px; }
  .acts { gap: 0 20px; margin-top: 2px; padding-top: 0; }
  .act { min-height: 44px; display: inline-flex; align-items: center; }
  .pager { justify-content: center; text-align: center; }
  .pager p { width: 100%; }
  .pages { gap: 8px; }                                   /* 8px between touch targets */
  .pages button { min-width: 40px; height: 44px; padding: 0 4px; }
  .pages button span { display: none; }

  .jobgrid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .jobmain { display: contents; }
  .jobgrid > .snapshot { order: 3; position: static; }
  .jobmain > .more { order: 4; }
  .jobgrid > .pass { order: 5; margin: 0; }
  .jhero-row { align-items: stretch; }
  .jhero-cta { width: 100%; min-width: 0; }
  .jhero-cta .primary { padding: 13px 18px; }
  .box { padding: 18px; }
  a.tag.skill { padding: 11px 14px; }
  .mini li { padding: 2px 0; }
  .mini a { display: inline-block; padding: 10px 0; }
  .mini span { padding-bottom: 10px; }
  .cards a { padding: 12px 0; }

  .pass { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
  .res { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .toc { position: static; display: flex; gap: 8px; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc p { display: none; }
  .toc a { flex: none; padding: 11px 16px; border: 1px solid var(--edge); border-radius: 999px; font-size: 14px; }
  .res-body { gap: 36px; }
  .res-body h2 { font-size: 22px; }
  .callout { padding: 20px 18px; }
  .faq summary { padding: 10px 0; }
  .faq details { padding: 2px 0; }
  .faq details p { margin: 0 0 12px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .foot ul { gap: 0; }
  .foot ul a, .foot-src a { display: inline-block; padding: 11px 0; }
  .foot-src { gap: 0 22px; }
  .two { grid-template-columns: 1fr; }
  .x { width: 44px; height: 44px; }
  /* small text links get a finger-sized hit area on phones */
  .foot-legal a, .foot-bottom p a, .crumb a { display: inline-block; padding: 11px 0; }
  .foot-bottom { gap: 0 24px; padding-top: 8px; }
  .job h3 a { display: inline-block; padding: 9px 0; margin: -9px 0; }

  .consent { left: 8px; right: 8px; bottom: 8px; padding: 8px 8px 8px 12px; flex-wrap: nowrap; gap: 8px; }
  .consent p { font-size: 13px; flex: 1 1 auto; }
  .consent button { padding: 11px 14px; font-size: 15px; }
}
@media (max-width: 430px) {
  /* phones: keep the header on one line and inside the screen */
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { white-space: nowrap; }
  nav { gap: 8px; }
  .top-row .ghost, .top-row .primary { padding: 9px 10px; font-size: 14px; }
  .navlink { font-size: 14px; padding: 12px 4px; }
}
@media (max-width: 820px) and (max-height: 700px) {
  /* short phones: drop the one-line description so the first Apply button stays on screen */
  .hero .sub { display: none; }
  .hero h1 { margin-bottom: 10px; }
}
/* Motion: only where it reports something. New cards rise in when the list changes, a pressed
   button gives a little, Save and Applied pop, the dialog and the phone sheet ease in.
   All of it is inside "no-preference", so reduced-motion visitors get instant changes. */
@media (prefers-reduced-motion: no-preference) {
  .list.is-fresh > li { animation: arrive .22s var(--ease-out) backwards; }
  .list.is-fresh > li:nth-child(2) { animation-delay: 30ms; }
  .list.is-fresh > li:nth-child(3) { animation-delay: 60ms; }
  .list.is-fresh > li:nth-child(4) { animation-delay: 90ms; }
  .list.is-fresh > li:nth-child(n+5) { animation-delay: 120ms; }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
  .primary, .solid, .ghost, .q, .pages button, button.tag.skill, .search button { transition: transform .1s ease-out, background-color .15s, border-color .15s, color .15s, opacity .15s, filter .15s; }
  .primary:active, .solid:active, .ghost:active, .q:active, .pages button:active:not(:disabled), .search button:active { transform: scale(.97); }
  .act, .navlink, .foot a, .toc a { transition: color .15s, background-color .15s; }
  .just > .i { animation: pop .3s var(--ease-out); }
  @keyframes pop { 45% { transform: scale(1.35); } }
  .done { animation: arrive .22s var(--ease-out) backwards; }
  dialog[open] { animation: open .2s var(--ease-out); }
  dialog[open]::backdrop { animation: dim .2s ease-out; }
  @keyframes open { from { opacity: 0; transform: translateY(10px) scale(.98); } }
  @keyframes dim { from { opacity: 0; } }
  .field-error:not(:empty) { animation: arrive .18s var(--ease-out) backwards; }
  .faq summary::marker { transition: color .15s; }
}
@media (prefers-reduced-motion: reduce) { .filters, .filters.open, .job { transition: none; } }
@media (prefers-color-scheme: dark) {
  button.tag.skill[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #0a1226; }
}
@media (prefers-color-scheme: dark) {
  .logo { background: hsl(var(--h) 35% 20%); color: hsl(var(--h) 65% 82%); border-color: hsl(var(--h) 30% 30%); }
  .pages button[aria-current="page"], .q[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #0a1226; }
}

/* footer email: the long address may wrap inside narrow columns */
.foot-email { overflow-wrap: break-word; }
