/* Server-rendered pages (job, company, topic, leaderboard, methodology, status): the layout.
   Colours, type and shape come from static/brand.css, served after this file. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.site { display: flex; align-items: center; gap: 18px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
header.site .brand { font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
header.site nav { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; }
header.site form { margin-left: auto; display: flex; gap: 6px; }
header.site input[type=search] { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; width: 220px; max-width: 50vw; }
main { max-width: 980px; margin: 0 auto; padding: 22px 24px 64px; }
h1 { font-size: 26px; line-height: 1.25; margin: 6px 0 6px; letter-spacing: -.02em; }
h2 { font-size: 18px; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.crumbs { font-size: 13px; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; margin: 14px 0; }
.facts div .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.chip { background: var(--chip); border-radius: 999px; padding: 1px 9px; font-size: 12.5px; color: var(--muted); }
.chip.ai { background: var(--accent-soft); color: var(--accent); }
.salary { color: var(--good); font-weight: 600; }
.apply { display: inline-block; background: var(--accent); color: #fff; border-radius: 9px; padding: 9px 16px; font-weight: 600; margin: 8px 0; }
.apply:hover { text-decoration: none; filter: brightness(1.08); }
.track { display: inline-block; margin: 8px 0 8px 8px; vertical-align: middle; }
.track button, .track .button { font: inherit; font-weight: 600; font-size: 14.5px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 9px; padding: 8px 14px; cursor: pointer; display: inline-block; }
.track button:hover, .track .button:hover { border-color: var(--accent); text-decoration: none; }
.notice { border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); padding: 10px 14px; border-radius: 6px; margin: 12px 0; }
.description { margin-top: 18px; }
.description p { margin: 0 0 12px; }
.description ul { margin: 0 0 12px; padding-left: 22px; }
ul.roles { list-style: none; margin: 0; padding: 0; }
ul.roles li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 10px 2px; border-top: 1px solid var(--line); }
ul.roles li .t { font-weight: 600; }
ul.roles li .m { color: var(--muted); font-size: 13px; }
ul.roles li .r { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; border-top: none; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.pager { display: flex; gap: 14px; justify-content: center; margin: 18px 0; }
.links { columns: 3 200px; font-size: 14px; }
.links a { display: block; padding: 2px 0; }
.prose h1 { font-size: 24px; } .prose h2 { font-size: 18px; } .prose code { background: var(--chip); padding: 0 4px; border-radius: 4px; }
.prose table { margin: 10px 0; }
footer.site { max-width: 980px; margin: 0 auto; padding: 18px 24px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { header.site form { margin-left: 0; width: 100%; } header.site input[type=search] { flex: 1; max-width: none; } }
.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 22px; margin: 10px 0 6px; }
.stack-group .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.stack .chip .n { color: var(--muted); font-size: 11.5px; margin-left: 2px; }
table.pay { margin: 6px 0 14px; }
table.pay tr.all td { font-weight: 600; border-bottom-width: 2px; }
h3 { font-size: 15px; margin: 18px 0 4px; }

/* The sites' identities (docs/SITES.md §4): colour tokens in light and dark, type, shape
   and wordmarks. Each page's <html data-site="…"> picks one; the layout is shared. Every
   palette meets WCAG AA (checked in CI: src/brand.rs). Fonts are self-hosted: no font requests
   to anyone. */

:root {
  /* JobAware itself (accounts, and any page outside a site): the default palette. */
  --bg: #f7f7f5; --panel: #ffffff; --ink: #16181d; --muted: #646a75; --line: #e4e4e0;
  --accent: #3b5bdb; --accent-soft: #e8edff; --chip: #f0f0ec; --bar: #3b5bdb;
  /* Status colours, for every site: salary and remote (good), warnings, errors. */
  --good: #21703a; --warn: #8a5300; --bad: #b42318;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --on-accent: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  --numeric: normal;
}

/* Attention Head (AI): dark first, graphite and signal amber, Funnel Display and Funnel Sans with
   Martian Mono for figures (docs/design/ATTENTIONHEAD.md). Its layout is its own:
   static/attentionhead/site.css. Funnel has no arrows; Martian Mono's stand in for them. */
@font-face { font-family: "Funnel Sans"; src: url("/static/attentionhead/funnel-sans.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Display"; src: url("/static/attentionhead/funnel-display.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("/static/attentionhead/martian-mono.woff2") format("woff2"); unicode-range: U+2190-2197; font-display: swap; }
@font-face { font-family: "Funnel Display"; src: url("/static/attentionhead/martian-mono.woff2") format("woff2"); unicode-range: U+2190-2197; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/static/attentionhead/martian-mono.woff2") format("woff2"); font-weight: 400 600; font-stretch: 87.5% 100%; font-display: swap; }
:root[data-site="attentionhead"] {
  color-scheme: light;
  --bg: #f7f8f9; --panel: #ffffff; --float: #ffffff; --ink: #0d1015; --ink-2: #3b424d; --muted: #5d6570; --line: #e2e5e9;
  --accent: #9b5700; --accent-soft: #fbf0e1; --chip: #eef0f2; --bar: #c27a1a; --on-accent: #ffffff;
  --good: #1d6b3d; --warn: #a23b00; --bad: #b42318;
  --shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(13,16,21,.12);
  --font: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 10px;
  --numeric: tabular-nums;
}
/* Portrait (Mobile): light first, a pebble ground and white cards, badge red and a colour per platform,
   Nunito for headlines and Nunito Sans for text (docs/design/PORTRAIT.md). Its layout is its own:
   static/portrait/site.css. */
@font-face { font-family: "Nunito Sans"; src: url("/static/portrait/nunito-sans.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/static/portrait/nunito.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
:root[data-site="portrait"] {
  color-scheme: light;
  --bg: #f0efed; --panel: #ffffff; --chip: #e7e5e1; --line: #dddad5;
  --ink: #1c1915; --ink-2: #4d4740; --muted: #645d55;
  --accent: #b93219; --accent-soft: #fbe8e3; --badge: #e2402a; --bar: #b93219; --on-accent: #ffffff;
  --ios: #2d5fd3; --android: #1f7d45; --cross: #8446c0; --good: #1d6b3d;
  --lift-1: 0 1px 2px rgba(48,36,24,.06), 0 2px 8px rgba(48,36,24,.06);
  --lift-2: 0 2px 4px rgba(48,36,24,.06), 0 14px 36px rgba(48,36,24,.12);
  --shadow: var(--lift-1);
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Nunito", "Nunito Sans", system-ui, sans-serif;
  --radius: 22px;
  --numeric: tabular-nums;
}
/* Left Join (Data): plain and numerate, a query and its result (docs/design/LEFTJOIN.md). White
   paper, ink, and colour only from syntax: keywords in join green, strings, numbers. Libre
   Franklin, Literata for prose, Red Hat Mono for queries and every figure. Its layout is its own:
   static/leftjoin/site.css. Literata's arrows stand in for the others'. */
@font-face { font-family: "Libre Franklin"; src: url("/static/leftjoin/libre-franklin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/static/leftjoin/literata.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url("/static/leftjoin/red-hat-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/static/leftjoin/literata.woff2") format("woff2"); unicode-range: U+2190-2193; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url("/static/leftjoin/literata.woff2") format("woff2"); unicode-range: U+2190-2193; font-display: swap; }
:root[data-site="leftjoin"] {
  color-scheme: light;
  --bg: #ffffff; --panel: #ffffff; --ink: #15171a; --ink-2: #3c4047; --muted: #60656d; --line: #d5d8dd;
  --accent: #0a7552; --accent-soft: #e6f4ee; --chip: #f3f4f6; --bar: #119066; --on-accent: #ffffff;
  --string: #a33f0c; --number: #2c50c0;
  --good: #1b6e3c; --warn: #8a5300; --bad: #b42318;
  --shadow: none;
  --font: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-prose: "Literata", Georgia, serif;
  --font-mono: "Red Hat Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 4px;
  --numeric: tabular-nums;
}

/* Level Select (Games): a level select screen (docs/design/LEVELSELECT.md). Light first, a cool
   grey ground and white tiles, violet links, the selection in cursor yellow, and a colour per
   discipline. Rubik for everything, Oxanium (squared, HUD-like) for the wordmark and small labels. Its layout
   is its own: static/levelselect/site.css. */
@font-face { font-family: "Rubik"; src: url("/static/levelselect/rubik.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Oxanium"; src: url("/static/levelselect/oxanium.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root[data-site="levelselect"] {
  color-scheme: light;
  --bg: #eef0f5; --panel: #ffffff; --chip: #e3e6ee; --line: #d3d7e1;
  --ink: #11131c; --ink-2: #3a3f52; --muted: #565d72;
  --accent: #5a34c9; --accent-soft: #ece6fd; --bar: #6b46db; --on-accent: #ffffff;
  --select: #ffc42e; --on-select: #11131c; --plate: #ffffff;
  --engineering: #2a56c4; --art: #ad276a; --design: #984600; --production: #0b6a70; --qa: #236f32; --audio: #8a3fb8;
  --good: #1d6b3d; --warn: #8a5300; --bad: #b42318;
  --shadow: 0 1px 0 var(--line), 0 6px 18px rgba(17,19,28,.07);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Rubik", system-ui, sans-serif;
  --font-hud: "Oxanium", "Rubik", system-ui, sans-serif;
  --radius: 8px;
  --numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --panel: #171a21; --ink: #e8e9ec; --muted: #9aa0ab; --line: #272b34;
    --accent: #7c95ff; --accent-soft: #1d2440; --chip: #222630; --bar: #7c95ff; --on-accent: #0f1115;
    --good: #51cf66; --warn: #fcc419; --bad: #ff6b6b;
    --shadow: none;
  }
  :root[data-site="attentionhead"] {
    color-scheme: dark;
    --bg: #0b0d10; --panel: #12151a; --float: #181c22; --ink: #eceef2; --ink-2: #b3b9c3; --muted: #8a919c; --line: #232830;
    --accent: #f2b15c; --accent-soft: #2b2214; --chip: #1a1e24; --bar: #f2b15c; --on-accent: #1a1206;
    --good: #84d1a0; --warn: #ff9b6b; --bad: #ff7a7a;
    --shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0,0,0,.45);
  }
  :root[data-site="portrait"] {
    color-scheme: dark;
    --bg: #141210; --panel: #1e1b18; --chip: #292521; --line: #36312c;
    --ink: #f4f0ea; --ink-2: #cbc3b9; --muted: #a59c91;
    --accent: #ff8b74; --accent-soft: #3b201a; --badge: #ff6b54; --bar: #ff8b74; --on-accent: #2a120c;
    --ios: #86a8ff; --android: #62c98d; --cross: #c79ef2; --good: #84d1a0;
    --lift-1: 0 0 0 1px #36312c; --lift-2: 0 0 0 1px #36312c, 0 18px 44px rgba(0,0,0,.5);
    --shadow: var(--lift-1);
  }
  :root[data-site="leftjoin"] {
    color-scheme: dark;
    --bg: #121416; --panel: #181b1e; --ink: #e9ebee; --ink-2: #bcc1c8; --muted: #91979f; --line: #33383e;
    --accent: #5dd1a4; --accent-soft: #123026; --chip: #1f2327; --bar: #4fbf93; --on-accent: #0b2219;
    --string: #f2a679; --number: #9db5ff;
    --good: #7fd59b; --warn: #f0b45a; --bad: #ff8a80;
  }
  :root[data-site="levelselect"] {
    color-scheme: dark;
    --bg: #0f1017; --panel: #181a24; --chip: #222532; --line: #2e3242;
    --ink: #eef0f6; --ink-2: #c0c5d4; --muted: #9aa1b4;
    --accent: #b9a2ff; --accent-soft: #2a2148; --bar: #a58bff; --on-accent: #170f33;
    --select: #ffd54a; --on-select: #11131c; --plate: #e4e6ee;
    --engineering: #86a8ff; --art: #ff8ac0; --design: #ffa95c; --production: #4fd1c5; --qa: #7fd38a; --audio: #d3a0ff;
    --good: #84d1a0; --warn: #f0b45a; --bad: #ff8a80;
    --shadow: 0 0 0 1px var(--line);
  }
}

body { font-family: var(--font); font-variant-numeric: var(--numeric); }
.panel, .kpi, .card { border-radius: var(--radius); }
button.primary, a.btn-primary, .apply { color: var(--on-accent); }

/* Wordmarks. */
.wm { font-weight: 700; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
/* Each wordmark ends with its kind of job in small capitals under the word. */
.wm-name { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .22em; }
.wm-kind { font-size: max(.625rem, .5em); font-weight: 600; line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* Attention Head: the beam, a searchlight of three rays with the middle one brightest, then the word. */
.wm-attentionhead {
  display: inline-flex; align-items: center; gap: 7px; font-family: "Funnel Display", system-ui, sans-serif;
  font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1;
}
.wm-attentionhead .wm-mark { width: 1.05em; height: .95em; fill: currentColor; color: var(--accent); flex: none; }
@media (forced-colors: active) { .wm-attentionhead .wm-mark { color: CanvasText; } }
/* Portrait: the phone held upright with a badge, cut out of the ground by a ring, then the word. */
.wm-portrait {
  display: inline-flex; align-items: center; gap: 6px; font-family: "Nunito", system-ui, sans-serif;
  font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1;
}
.wm-portrait .wm-mark { width: .86em; height: 1.04em; flex: none; overflow: visible; }
.wm-portrait .wm-phone { fill: none; stroke: currentColor; stroke-width: 2.2; }
.wm-portrait .wm-badge { fill: var(--badge, var(--accent)); stroke: var(--wm-ground, var(--bg)); stroke-width: 2; }
@media (forced-colors: active) { .wm-portrait .wm-badge { fill: CanvasText; stroke: Canvas; } }
/* Left Join: the LEFT JOIN diagram (the left set filled), then the keywords. */
.wm-leftjoin {
  display: inline-flex; align-items: center; gap: 9px; font-family: "Red Hat Mono", ui-monospace, monospace;
  font-size: 16px; font-weight: 600; letter-spacing: .04em; line-height: 1;
}
.wm-leftjoin .wm-mark { width: 1.6em; height: 1em; flex: none; overflow: visible; }
.wm-leftjoin .wm-left { fill: var(--accent); }
.wm-leftjoin .wm-right { fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (forced-colors: active) { .wm-leftjoin .wm-left { fill: CanvasText; } }

footer .sisters { margin-top: 6px; }

/* A site's kind of job, in small capitals under its name wherever the name is a label ("AI jobs"). */
.sitekind { display: block; margin-top: 2px; font-size: 0.625rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.08em;
            text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Menus (static/menu.js): every <select> shows as a button for its value and a listbox of its
   options. These are the defaults; each site's stylesheet shapes them where it uses one. The
   <select> stays inside, unseen, as the value. */
.menu { position: relative; display: inline-flex; vertical-align: middle; max-width: 100%; }
.menu > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; max-width: 100%;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.menu-btn:disabled { opacity: .5; cursor: default; }
.menu-btn .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-chev { flex: none; color: var(--muted); }
.menu.open .menu-chev { transform: rotate(180deg); }
.menu-pop {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; display: none; min-width: 100%;
  width: max-content; max-width: min(24rem, calc(100vw - 24px)); padding: 4px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--float, var(--panel)); color: var(--ink);
  font-family: var(--font); font-weight: 400; text-align: left;
}
.menu.open .menu-pop { display: block; }
.menu.up .menu-pop { top: auto; bottom: calc(100% + 4px); }
.menu.end .menu-pop { left: auto; right: 0; }
.menu-pop input {
  display: block; width: 100%; height: 30px; margin: 0 0 4px; padding: 0 8px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--ink); font: 400 .875rem var(--font);
}
.menu-pop input:focus { outline: none; border-color: var(--accent); }
.menu-pop input[hidden] { display: none; }
.menu-list { display: block; max-height: 18rem; overflow-y: auto; outline: none; }
.opt {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 9px;
  border-radius: calc(var(--radius) - 2px); font-size: .875rem; line-height: 1.35; color: var(--ink-2, var(--ink)); cursor: pointer;
}
.opt .n { flex: none; font-family: var(--font-mono, var(--font)); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt.active { background: var(--chip); color: var(--ink); }
.opt[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.opt[aria-disabled="true"] { opacity: .5; cursor: default; }
.opt-empty { display: block; padding: 6px 9px; color: var(--muted); font-size: .875rem; }
@media (prefers-reduced-motion: no-preference) { .menu-chev { transition: transform 120ms ease-out; } }
@media (forced-colors: active) { .opt.active { outline: 1px solid Highlight; } .opt[aria-selected="true"] { color: Highlight; } }
.menu.float .menu-pop { position: fixed; z-index: 60; }
/* Level Select: four level tiles, one selected, then the word in pixels. */
.wm-levelselect {
  display: inline-flex; align-items: center; gap: 8px; font-family: "Oxanium", system-ui, sans-serif;
  font-size: 21px; font-weight: 700; letter-spacing: 0; line-height: 1;
}
.wm-levelselect .wm-mark { width: 1em; height: 1em; flex: none; }
.wm-levelselect .wm-tile { fill: none; stroke: currentColor; stroke-width: 2; }
.wm-levelselect .wm-picked { fill: var(--accent); stroke: var(--accent); }
@media (forced-colors: active) { .wm-levelselect .wm-picked { fill: CanvasText; stroke: CanvasText; } }

/* Recent searches (static/search_history.js): the clock button in a board's search field, and the
   list it opens over the board, which blurs behind it. The structure is here; each site's
   stylesheet gives it its look. On phones the list is a sheet from the bottom. */
.sh-button {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius);
  background: none; color: var(--muted); cursor: pointer;
}
.sh-button:hover, .sh-button[aria-expanded="true"] { color: var(--ink); background: var(--chip); }
.sh-clock { display: block; }
html.sh-open { overflow: hidden; }
.sh {
  width: min(36rem, calc(100vw - 32px)); max-width: none; max-height: min(72vh, 42rem); margin: min(12vh, 104px) auto auto;
  padding: 0; border: 0; overflow: hidden; background: var(--float, var(--panel)); color: var(--ink);
}
.sh::backdrop { background: color-mix(in srgb, var(--bg) 52%, transparent); -webkit-backdrop-filter: blur(10px) saturate(.85); backdrop-filter: blur(10px) saturate(.85); }
.sh-panel { display: flex; flex-direction: column; max-height: inherit; }
.sh-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; flex: none; padding: 14px 14px 12px 20px; }
.sh-kicker { flex: 1 0 100%; margin: 0; }
.sh-title { flex: 1 1 0; min-width: 0; margin: 0; }
.sh-close { flex: none; cursor: pointer; font: inherit; }
.sh-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sh-list { list-style: none; margin: 0; padding: 0 0 8px; }
.sh-list[hidden], .sh-empty[hidden], .sh-clear[hidden] { display: none; }
.sh-group { padding: 12px 20px 6px; color: var(--muted); }
.sh-item { position: relative; }
.sh-use {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; width: 100%;
  padding: 10px 52px 10px 20px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.sh-use:focus-visible { outline: none; }
.sh-what { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sh-q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sh-chip { white-space: nowrap; }
.sh-when { white-space: nowrap; color: var(--muted); }
.sh-del {
  position: absolute; top: 50%; right: 12px; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 0;
  border-radius: var(--radius); background: none; color: var(--muted); font: inherit; font-size: 1.125rem; line-height: 1;
  cursor: pointer; opacity: 0;
}
.sh-item:hover .sh-del, .sh-item:focus-within .sh-del, .sh-del:focus-visible { opacity: 1; }
.sh-del:hover { color: var(--ink); background: var(--chip); }
.sh-empty { padding: 8px 20px 28px; color: var(--ink-2); }
.sh-empty p { margin: 0; max-width: 28rem; }
.sh-empty .sh-empty-title { margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.sh-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; flex: none; padding: 12px 20px; color: var(--muted); }
.sh-where { flex: 1 1 14rem; min-width: 0; }
.sh-keys { white-space: nowrap; }
.sh-keys kbd { margin: 0 2px; }
.sh-clear { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sh-clear:hover { color: var(--ink); }
.history-note button { white-space: nowrap; }
@media (hover: none) { .sh-del { opacity: 1; } }
/* `dialog.sh`: ahead of each site's own width for the overlay. */
@media (max-width: 760px) {
  dialog.sh { width: 100%; max-width: 100%; max-height: 82dvh; margin: auto 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .sh-keys { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .sh[open] { animation: sh-in 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  .sh[open]::backdrop { animation: sh-fade 200ms ease-out; }
  .sh.sh-enter .sh-item { animation: sh-row 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 22ms + 40ms); }
  .sh-del, .sh-button { transition: opacity 120ms ease-out, color 120ms ease-out, background-color 120ms ease-out; }
  @media (max-width: 760px) { .sh[open] { animation: sh-rise 280ms cubic-bezier(0.2, 0.8, 0.2, 1); } }
}
@keyframes sh-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
@keyframes sh-rise { from { transform: translateY(100%); } }
@keyframes sh-fade { from { opacity: 0; } }
@keyframes sh-row { from { opacity: 0; transform: translateY(4px); } }
@media (forced-colors: active) { .sh { border: 1px solid CanvasText; } .sh-use:focus-visible { outline: 2px solid Highlight; outline-offset: -2px; } }

/* The next step on a role (static/next_step.js, owner request 2026-11-17). Four weights, most
   to least: Apply, the one filled button; tailoring, the value these sites add, in the accent's
   soft tone with its icon; Save, the site's plain button with a bookmark; the role's own page, a
   quiet link. `:root[data-site]` outranks each site's button rules, whichever loads last. */
.ns { display: contents; }
:root[data-site] .track.ns { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:root[data-site] .track.ns form { display: contents; }
.ns-icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ns-icon .ns-spark { fill: currentColor; stroke: none; }
:root[data-site] .ns-save, :root[data-site] .ns-tailor, :root[data-site] .ns-stage { display: inline-flex; align-items: center; gap: 7px; }
/* No shadows here: Left Join has none (its sites' own stylesheets add them where they belong). */
:root[data-site] .ns-tailor {
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
  border-style: solid; border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
/* The fill stays put on hover (a deeper tint would take the label under 4.5:1); the edge firms. */
:root[data-site] .ns-tailor:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
:root[data-site] .ns-stage { color: var(--accent); }
:root[data-site] .btn.ns-quiet { background: transparent; border-color: transparent; color: var(--ink-2); font-weight: 600; }
:root[data-site] .btn.ns-quiet:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* The button a press has just changed: it grows in from the old one, a ring spreads from it and
   fades, and the spark turns. */
@media (prefers-reduced-motion: no-preference) {
  :root[data-site] .ns-new { position: relative; animation: ns-arrive 640ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  :root[data-site] .ns-new::after {
    content: ""; position: absolute; inset: -2px; border: 2px solid var(--accent); border-radius: inherit;
    pointer-events: none; animation: ns-ring 640ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .ns-new .ns-spark { animation: ns-spark 560ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms both; transform-box: fill-box; transform-origin: center; }
}
/* Without motion, the tint still arrives in one step, and the label says what changed. */
@keyframes ns-arrive { 0% { transform: scale(0.94); } 45% { transform: scale(1.03); } 100% { transform: none; } }
@keyframes ns-ring { 0% { inset: -2px; opacity: 0.55; } 100% { inset: -11px; opacity: 0; } }
@keyframes ns-spark { 0% { transform: rotate(-120deg) scale(0.3); } 65% { transform: rotate(12deg) scale(1.35); } 100% { transform: none; } }

/* "Next: Tailor my resume and apply" on a saved role's page, with an info button whose tooltip
   says what tailoring does. Hover, focus or a tap shows it; Esc hides it (static/me.js). */
.ns-next { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.ns-next form { display: contents; }
.ns-info {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.05rem;
}
.ns-info:hover, .ns-next.tip-open .ns-info { background: var(--chip); color: var(--ink); }
.ns-info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ns-tip {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; width: min(21rem, calc(100vw - 32px));
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink);
  font-size: 0.875rem; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
  transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 0s linear 160ms;
}
/* A bridge over the gap, so the pointer can move from the button onto the tooltip. */
.ns-tip::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
.ns-tip strong { display: block; margin-bottom: 4px; font-weight: 700; }
.ns-info:hover + .ns-tip, .ns-info:focus-visible + .ns-tip, .ns-tip:hover, .ns-next.tip-open .ns-tip {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s;
}
.ns-next.tip-shut .ns-tip { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ns-tip { transition: none; } }
@media (forced-colors: active) { .ns-tip { border: 1px solid CanvasText; } :root[data-site] .ns-tailor { border: 1px solid ButtonText; } }

/* Saving without an account (static/saves.js). Each row's own Save: a bookmark that fills once
   saved, on top of the row's stretched link, a 40px target on touch screens. */
.row-save {
  position: relative; z-index: 1; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius, 6px); background: transparent; color: var(--muted);
  cursor: pointer; justify-self: end; align-self: center;
}
.row-save .ns-icon { width: 18px; height: 18px; }
.row-save:hover { color: var(--ink); border-color: var(--line); background: var(--bg); }
.row-save:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.row-save.on { color: var(--accent); }
.row-save.on .ns-icon { fill: currentColor; }
@media (pointer: coarse) { .row-save { width: 40px; height: 40px; } }
/* "Keep them on every device": the email that brings a browser's saves into an account. */
dialog.keep-saves {
  width: min(28rem, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius, 10px);
  background: var(--panel, var(--bg)); color: var(--ink);
}
dialog.keep-saves::backdrop { background: rgb(0 0 0 / 0.45); }
.keep-in { display: grid; gap: 10px; padding: 22px 22px 20px; }
.keep-in h2 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.keep-in p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.keep-in label { font-weight: 600; font-size: 0.875rem; margin-top: 4px; }
.keep-in input[type=email] {
  height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius, 6px);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem;
}
.keep-in input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.keep-error { color: var(--bad, #b42318); font-size: 0.875rem; }
.keep-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.keep-actions button, .keep-actions a.btn {
  display: inline-flex; align-items: center; text-decoration: none;
  height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius, 6px);
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.keep-actions button.primary, .keep-actions a.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.keep-actions button:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 760px) {
  dialog.keep-saves { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--radius, 10px) var(--radius, 10px) 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
/* The toast's and the role page's "Keep them on every device", a link-styled button. */
[data-keep-saves].link, .ns-note [data-keep-saves] { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ns-note { margin: 8px 0 0; }
