/* 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; }

/* Attention Head: frontier and technical, dark first (docs/design/ATTENTIONHEAD.md, from Linear's rows and
   keyboard and Anthropic's type-led restraint). Colours and families are tokens from
   static/brand.css, served before this file; nothing here is a raw colour. One blur: the top bar,
   because rows scroll beneath it. */

:root {
  --mono: var(--font-mono);
  --r-ctl: 6px; --r-panel: 10px; --r-tag: 4px;
  --width: 75rem; --measure: 36rem; --gutter: clamp(16px, 3.2vw, 32px);
  --bar-h: 52px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Figures on the darkest matrix shade: ink on light amber, the ground on bright amber. */
  --cell-hot: var(--ink);
}
@media (prefers-color-scheme: dark) { :root { --cell-hot: var(--bg); } }

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

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 0.9375rem/1.55 var(--font); font-variant-numeric: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3 { font-weight: 500; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); }
p, dd, li { text-wrap: pretty; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 12px; }
h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; margin: 48px 0 12px; }
h3 { font-size: 1rem; line-height: 1.35; letter-spacing: -0.005em; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
kbd {
  display: inline-block; min-width: 20px; padding: 1px 5px; border: 1px solid var(--line); border-radius: var(--r-tag);
  background: var(--chip); color: var(--ink-2); font: 500 0.6875rem/1.45 var(--mono); text-align: center;
}
code, pre { font-family: var(--mono); font-size: 0.8125rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.fig { font-family: var(--mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; padding: 8px 12px; border-radius: var(--r-ctl); background: var(--accent); color: var(--on-accent); text-decoration: none; }
.skip:focus { top: 10px; }

main { max-width: var(--width); margin: 0 auto; padding: 40px var(--gutter) 96px; }

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

.bar {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
}
.bar-in { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); height: var(--bar-h); display: flex; align-items: center; gap: 24px; }
main:has(.board) ~ .foot .foot-in, body:has(.board) .bar-in { max-width: none; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; flex: none; }
.bar-nav { display: flex; gap: 2px; font-size: 0.8125rem; }
.bar-nav a { padding: 6px 10px; border-radius: var(--r-ctl); color: var(--muted); text-decoration: none; transition: color 120ms var(--ease), background-color 120ms var(--ease); }
.bar-nav a:hover { color: var(--ink); background: var(--chip); }
.bar-nav a[aria-current="page"] { color: var(--ink); }
.bar-search { margin-left: auto; position: relative; width: min(260px, 32vw); }
.bar-search input {
  width: 100%; height: 32px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--panel); color: var(--ink); font: inherit; font-size: 0.8125rem;
}
.bar-search input::placeholder, .find input::placeholder, .board-search input::placeholder { color: var(--muted); }
.bar-search input:focus { outline: none; border-color: var(--accent); }
.bar-search kbd { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.bar-search input:focus + kbd { visibility: hidden; }
body:has(.board) .bar-search { visibility: hidden; }
.bar-saved { font-size: 0.8125rem; color: var(--muted); text-decoration: none; padding: 6px 4px; }
.bar-saved:hover, .bar-saved[aria-current="page"] { color: var(--ink); }
/* Alerts and Saved sit together: the pair takes the margin a lone Saved did. */
.bar-in .bar-alerts + .bar-saved { margin-left: -6px; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
.foot-in { max-width: var(--width); margin: 0 auto; padding: 40px var(--gutter) 56px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-about p { margin: 14px 0 0; max-width: 30ch; }
.foot-about a:not(.brand) { color: var(--ink-2); }
.foot h2 { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); margin: 0 0 12px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot nav a span { color: var(--muted); }

/* ---------- shared bits ---------- */

.tag {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 1px 7px; border-radius: var(--r-tag);
  background: var(--chip); color: var(--ink-2); font-size: 0.75rem; line-height: 1.6; white-space: nowrap; text-decoration: none;
}
a.tag:hover { color: var(--ink); background: color-mix(in srgb, var(--chip) 60%, var(--line)); }
.tag .n { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.6875rem; color: var(--muted); }
.note { color: var(--muted); font-size: 0.8125rem; max-width: 62ch; margin: 0; }
.note a, .lede a { color: inherit; }
.more { margin: 14px 0 0; font-size: 0.8125rem; }
.more a { color: var(--ink-2); }
.empty { padding: 40px 12px; color: var(--muted); list-style: none; }
.meter { display: block; height: 4px; border-radius: 2px; background: var(--chip); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--bar); border-radius: 2px; }
button.link { all: unset; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- landing ---------- */

.hero { padding: clamp(24px, 6vw, 64px) 0 0; }
.hero .display { max-width: 58rem; }
.display {
  font-family: var(--font-display); font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); font-weight: 500; line-height: 1.02;
  letter-spacing: -0.035em; margin: 0 0 24px;
}
.display .quiet { color: var(--ink-2); }
.live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 14px 0 0; color: var(--muted); font-size: 0.8125rem; }
.live .fig { color: var(--ink); }
.live .sep { color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); align-self: center; margin-right: 4px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 18%, transparent); }
/* The hero's search: one console of what, where, level and remote, then the button. */
.find {
  display: flex; align-items: stretch; max-width: 60rem; min-height: 56px; border: 1px solid var(--line);
  border-radius: var(--r-panel); background: var(--panel); transition: border-color 120ms var(--ease);
}
.find:focus-within { border-color: var(--muted); }
.find-q { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.find-q input { flex: 1; min-width: 0; padding: 0 44px 0 16px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; }
.find-q input:focus { outline: none; }
.find-q kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.find-q input:focus ~ kbd { visibility: hidden; }
.find-sel, .find-remote { display: flex; align-items: center; border-left: 1px solid var(--line); flex: none; }
.find-sel select {
  height: 100%; padding: 0 30px 0 14px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.875rem;
  appearance: none; cursor: pointer;
}
.find-sel { position: relative; }
.find-sel:not(:has(.menu))::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 5px; height: 5px; margin-top: -4px; pointer-events: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg);
}
.find-sel select:focus-visible, .find-sel .menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.find-sel .menu { display: flex; height: 100%; }
.find-sel .menu-btn { height: 100%; max-width: 13rem; padding: 0 14px; border: 0; border-radius: 0; background: transparent; color: var(--ink-2); font-size: 0.875rem; }
.find-sel .menu-btn:hover, .find-sel .menu.open .menu-btn { color: var(--ink); }
.find-sel select option { background: var(--float); color: var(--ink); }
.find-remote { gap: 8px; padding: 0 14px; color: var(--ink-2); font-size: 0.875rem; cursor: pointer; }
.find-remote input { accent-color: var(--accent); margin: 0; }
.find-remote:has(input:checked) { color: var(--accent); }
.find-remote:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.find button, .btn {
  font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.find button { margin: 6px; padding: 0 20px; border: 0; border-radius: var(--r-ctl); background: var(--ink); color: var(--bg); }
.find button:hover { background: var(--ink-2); }

/* Starting points: five ways onto the board, with their counts. */
.doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.door {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 2px 8px; padding: 16px 16px 18px;
  border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color 120ms var(--ease);
}
.door:first-child { border-left: 0; padding-left: 0; }
.door:hover { background: var(--panel); }
.door:first-child:hover { background: none; }
.door-label { font-weight: 500; }
.door-n { grid-column: 1; grid-row: 2; font-size: 1.25rem; color: var(--ink); margin-top: 6px; }
.door-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.75rem; margin-top: 4px; }
.door-go { grid-column: 2; grid-row: 1; color: var(--muted); transition: color 120ms var(--ease), transform 120ms var(--ease); }
.door:hover .door-go { color: var(--accent); transform: translateX(2px); }
.door:hover .door-label { color: var(--ink); }
.quick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-top: 20px; }
.quick-title { font: 400 0.8125rem/1.4 var(--font); color: var(--muted); margin: 0; letter-spacing: 0; }
.areas-quick { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.areas-quick .tag { font-size: 0.8125rem; padding: 3px 9px; }

.sect { margin-top: clamp(64px, 9vw, 104px); }
.sect-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 18px; }
.sect-head h2 { margin: 0; }
.board-frame { border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; background: var(--bg); }
.board-frame .rows { border-top: 0; }
.board-frame .rows li:first-child .row { border-top: 0; }
.frame-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel); font-size: 0.75rem; color: var(--muted); }
.frame-foot .keys kbd { margin: 0 2px 0 8px; }
.frame-foot .keys kbd:first-child { margin-left: 0; }
.frame-foot .go { color: var(--ink); text-decoration: none; font-size: 0.8125rem; }
.frame-foot .go:hover { color: var(--accent); }
.roles-link { font-weight: 400 !important; color: var(--ink); }
.roles-link:hover { color: var(--accent); }
a.share { text-decoration: none; color: var(--ink); }
a.share:hover .meter > span { background: var(--accent); }
td.employers { color: var(--muted); font-size: 0.8125rem; }
td.employers a { font-weight: 400; color: var(--ink-2); }
td.employers a:hover { color: var(--ink); }
.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.places a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 0.875rem; }
.places a:hover { color: var(--ink); }
.places .fig { color: var(--muted); font-size: 0.75rem; }
.places a:hover .fig { color: var(--accent); }
.account { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); }
.account h2 { margin: 0 0 8px; }
.account p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.account .btn { flex: none; height: 40px; padding: 0 18px; }
/* The landing page's one line of proof, closing it. */
.proof { margin: clamp(48px, 7vw, 72px) 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; max-width: 76ch; }
.proof a { color: var(--ink-2); }
.proof a:hover { color: var(--ink); }
.how-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.how-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 48px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.how-list dt { font-weight: 500; font-size: 1rem; }
.how-list dd { margin: 0; color: var(--ink-2); max-width: 60ch; }
.how-list dd a { color: var(--ink); }

/* ---------- rows (the board and the landing page) ---------- */

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 13rem) 11rem 7.5rem 2.5rem; align-items: center; gap: 16px;
  min-height: 44px; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none;
  position: relative; transition: background-color 120ms var(--ease);
}
.row:hover { background: var(--panel); }
/* A row is its role's link (the title, stretched over the row) with its employer's link on top. */
.row-link { color: inherit; text-decoration: none; }
.row-link::before { content: ""; position: absolute; inset: 0; }
.row-link:focus-visible { outline: none; }
.r-org .org { position: relative; z-index: 1; color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.r-org .org:hover { color: var(--accent); text-decoration-color: currentColor; }
.row.selected, .row:has(.row-link:focus-visible) { background: var(--panel); }
.row.selected::before, .row:has(.row-link:focus-visible)::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--accent); }
.r-main { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.r-title { font-weight: 500; font-size: 0.9375rem; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.r-org { color: var(--ink-2); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 10 auto; min-width: 4rem; }
.r-more { color: var(--muted); }
/* Open more than six months (jobs.js `longOpen`): a notice, not an error. */
.r-old { color: var(--warn); }
.long-open { color: var(--warn); }
.r-place { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-area { min-width: 0; overflow: hidden; }
.r-area .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.r-pay { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.75rem; color: var(--good); text-align: right; white-space: nowrap; }
.r-age { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.75rem; color: var(--muted); text-align: right; }
.row.is-saved .r-title::after { content: "Saved"; margin-left: 8px; font: 500 0.6875rem var(--mono); color: var(--accent); }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: baseline; }
th { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); border-top: 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead + tbody tr:first-child td { border-top: 0; }
td.n, th.n { text-align: right; }
td.n { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.75rem; white-space: nowrap; }
td a { text-decoration: none; font-weight: 500; }
td a:hover { text-decoration: underline; }
tbody tr { transition: background-color 120ms var(--ease); }
table.data tbody tr:hover { background: var(--panel); }
td .sub { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 1px; }
td.rank { color: var(--muted); width: 3rem; }
td.src { color: var(--ink-2); max-width: 22rem; }
.score, .share { display: grid; grid-template-columns: 3.4rem minmax(60px, 160px); align-items: center; gap: 10px; }
.share { grid-template-columns: 3.4rem minmax(80px, 240px); }
.score .fig, .share .fig { font-size: 0.75rem; text-align: right; }
table.pay tr.all td { font-weight: 500; color: var(--ink); }
table.pay td.n strong { font-weight: 600; color: var(--ink); }

/* ---------- page heads, tabs ---------- */

.page-head { max-width: 48rem; margin-bottom: 28px; }
.lede, .page-head + p.muted { color: var(--ink-2); font-size: 1rem; max-width: 62ch; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 9px 12px; color: var(--muted); text-decoration: none; font-size: 0.8125rem; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .n { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.6875rem; color: var(--muted); margin-left: 4px; }
.tabs + .note { margin-bottom: 18px; }

/* ---------- the shared server pages (job, company, topics, insights, status, prose) ---------- */

.crumbs { font-size: 0.8125rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
main > h1 + .muted, main > h1 + p.muted { color: var(--ink-2); font-size: 1rem; max-width: 62ch; }
main > h1 + div.muted { font-size: 0.875rem; }
/* A skill's or work area's topic page: what it is in AI work (src/about), then its counts. */
main > .topic-about { margin-bottom: 8px; }
main > .topic-about p { color: var(--ink-2); font-size: 1rem; max-width: 62ch; }
main > .topic-about + p.muted { font-size: 0.875rem; }
main > h1 + div.muted a { color: var(--ink-2); }
main p, main > details { max-width: 66ch; }
main > .description { max-width: 44rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0; margin: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 12px 16px 12px 0; font-size: 0.875rem; }
.facts .l { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); margin-bottom: 4px; }
.facts strong { font-family: var(--mono); font-stretch: 87.5%; font-weight: 500; font-size: 1.125rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.chip { display: inline-block; padding: 1px 7px; border-radius: var(--r-tag); background: var(--chip); color: var(--ink-2); font-size: 0.75rem; line-height: 1.6; text-decoration: none; }
.chip a { color: inherit; text-decoration: none; }
a.chip:hover, .chip a:hover { color: var(--ink); }
.chip.ai { background: var(--accent-soft); color: var(--accent); }
.chip .n { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.6875rem; color: var(--muted); margin-left: 2px; }
.salary, span.pay { color: var(--good); font-family: var(--mono); font-stretch: 87.5%; font-size: 0.875rem; }
.facts > div:has(.salary) { grid-column: span 2; }
table.pay { max-width: 52rem; }

/* ---------- insights: who's hiring and what roles ask for (src/insights.rs `asks`) ---------- */

.league td.asks { white-space: normal; min-width: 12rem; }
.league .chip, .together .pair { font-weight: 400; margin: 2px 4px 2px 0; }
.league .chip .n { color: var(--ink-2); }
/* The matrix: shades of --bar for the share, a 2px ground-coloured gap between cells. */
table.matrix { width: auto; }
table.matrix th[scope="row"] {
  font: 400 0.8125rem/1.35 var(--font); letter-spacing: 0; color: var(--ink);
  border-top: 2px solid var(--bg); border-bottom: 0; padding: 7px 14px 7px 0;
}
table.matrix th[scope="row"] a { font-weight: 500; }
table.matrix .sub { margin-left: 4px; font: 400 0.6875rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
table.matrix thead th { text-align: center; padding: 8px 6px; vertical-align: bottom; }
table.matrix thead th a { color: var(--muted); font-weight: 500; text-decoration: none; }
table.matrix thead th a:hover { color: var(--ink); }
table.matrix td.n { text-align: center; min-width: 3.25rem; padding: 9px 4px; border: 0; border-top: 2px solid var(--bg); border-left: 2px solid var(--bg); color: var(--ink); }
table.matrix tr.all th, table.matrix tr.all td { border-bottom: 6px solid var(--bg); }
table.matrix tr.all th { color: var(--ink-2); }
.h0 { background: var(--chip); }
table.matrix td.h0 { color: var(--muted); }
.h1 { background: color-mix(in srgb, var(--bar) 16%, var(--bg)); }
.h2 { background: color-mix(in srgb, var(--bar) 32%, var(--bg)); }
.h3 { background: color-mix(in srgb, var(--bar) 52%, var(--bg)); }
.h4 { background: color-mix(in srgb, var(--bar) 80%, var(--bg)); }
table.matrix td.h4 { color: var(--cell-hot); }
.matrix-key .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -2px; margin: 0 4px 0 10px; }
/* The skills map: hairline grid, dots in --bar, labels haloed in the ground. */
.map-wrap { overflow-x: auto; margin: 12px 0 8px; }
.map { display: block; width: 100%; max-width: 46rem; min-width: 34rem; height: auto; overflow: visible; }
.map .grid line { stroke: var(--line); stroke-width: 1; }
.map .base { stroke: var(--muted); stroke-width: 1; }
.map .med { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.map .ax { fill: var(--muted); font: 400 12px var(--mono); font-stretch: 87.5%; }
.map .hit { fill: transparent; }
.map .dot { fill: var(--bar); stroke: var(--bg); stroke-width: 2; transition: fill 120ms var(--ease); }
.map .lbl { fill: var(--ink-2); font: 400 12px var(--font); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.map .tip { display: none; fill: var(--ink); }
.map a { outline: none; }
.map a:hover .dot, .map a:focus-visible .dot { fill: var(--ink); }
.map a:focus-visible .dot { stroke: var(--accent); }
.map a:hover .lbl, .map a:focus-visible .lbl { fill: var(--ink); }
.map a:hover .tip, .map a:focus-visible .tip { display: inline; }
.map-table summary { cursor: pointer; color: var(--ink-2); font-size: 0.8125rem; margin: 4px 0 8px; }
/* Asked together: each companion a tag with its share here and across all roles. */
.together td.with { white-space: normal; }
.pair {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 8px; border-radius: var(--r-tag);
  background: var(--chip); color: var(--ink); font-size: 0.8125rem; text-decoration: none;
  transition: background-color 120ms var(--ease);
}
td a.pair { font-weight: 400; }
td a.pair:hover { text-decoration: none; background: var(--accent-soft); }
.pair .fig { font-size: 0.75rem; }
.pair .pair-vs { color: var(--muted); }
@media (max-width: 760px) {
  table.league .lg-opt { display: none; }
}
.apply, .btn, .track button, .track .button {
  height: 36px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: 500 0.8125rem/1 var(--font); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 120ms var(--ease), background-color 120ms var(--ease);
}
.apply, .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.apply:hover, .btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn:hover, .track button:hover, .track .button:hover { border-color: var(--muted); }
.btn.saved { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.apply { margin: 16px 0 8px; }
.track { display: inline-block; margin: 16px 0 8px 8px; vertical-align: top; }
.notice { border-left: 2px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); color: var(--ink); padding: 10px 14px; border-radius: 0 var(--r-ctl) var(--r-ctl) 0; margin: 16px 0; max-width: 44rem; }
.description { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.65; color: var(--ink-2); }
.description p, .description ul { margin: 0 0 14px; }
.description strong { color: var(--ink); font-weight: 600; }
.description ul { padding-left: 20px; }
ul.roles { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
ul.roles li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 24px; align-items: baseline; padding: 10px 12px; border-top: 1px solid var(--line); transition: background-color 120ms var(--ease); }
ul.roles li:hover { background: var(--panel); }
ul.roles .t { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
ul.roles .t:hover { text-decoration: underline; }
ul.roles .m { color: var(--muted); font-size: 0.8125rem; }
ul.roles .r { color: var(--muted); font-family: var(--mono); font-stretch: 87.5%; font-size: 0.75rem; text-align: right; white-space: nowrap; }
.links { columns: 3 14rem; column-gap: 32px; font-size: 0.875rem; }
.links a { display: block; padding: 4px 0; break-inside: avoid; text-decoration: none; color: var(--ink-2); }
.links a:hover { color: var(--ink); }
.links .muted { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.6875rem; }
/* An employer's tag above its work areas: trains models or builds on them. */
.company-tag { margin: 8px 0 16px; }
.tag-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); }
.tag-label { font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.tag-detail { font: 400 0.75rem/1.5 var(--mono); font-stretch: 87.5%; color: var(--ink-2); }
.company-tag p { margin: 8px 0 0; max-width: 62ch; }
.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 16px 28px; margin: 12px 0; }
.stack-group .l { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); margin-bottom: 6px; }
details summary { cursor: pointer; color: var(--muted); font-size: 0.8125rem; }

/* Jobs by model (/models): a search, task tabs, a count line with the sort, then the table. */
.list-search { display: flex; gap: 8px; max-width: 34rem; margin: 0 0 4px; }
.list-search input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--panel); color: var(--ink); font: inherit; font-size: 0.875rem;
}
.list-search input::placeholder { color: var(--muted); }
.list-search input:focus { outline: none; border-color: var(--accent); }
.list-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 0 0 8px; }
.sorts { display: flex; gap: 2px; align-items: baseline; color: var(--muted); font-size: 0.8125rem; }
.sorts a { padding: 3px 8px; border-radius: var(--r-ctl); color: var(--ink-2); text-decoration: none; }
.sorts a:hover { color: var(--ink); background: var(--panel); }
.sorts a[aria-current] { color: var(--accent); background: var(--accent-soft); }
table.models td.task { white-space: nowrap; }
/* What employers' postings name (pages::model_usage_page): a summary above the models, rows of terms. */
.usage-strip { margin: 0 0 28px; max-width: 62rem; }
.usage-strip h2 { font: 500 0.9375rem/1.4 var(--font); letter-spacing: 0; margin: 0 0 6px; }
.usage-strip dl { margin: 0 0 8px; }
.usage-strip dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.usage-strip dl > div:last-child { border-bottom: 1px solid var(--line); }
.usage-strip dt { color: var(--muted); font-size: 0.8125rem; }
.usage-strip dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.usage-strip dd a { text-decoration: none; font-weight: 500; font-size: 0.875rem; white-space: nowrap; }
.usage-strip dd a:hover { text-decoration: underline; }
.usage-strip dd .fig { color: var(--muted); font-size: 0.75rem; font-weight: 400; margin-left: 2px; }
.usage-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 0 48px; }
.usage-tables h2 { margin-top: 8px; }
table.usage td.kind { color: var(--ink-2); }
table.usage tr.on { background: var(--accent-soft); }
table.usage a[aria-current] { color: var(--accent); }
table.usage-employers { table-layout: fixed; min-width: 44rem; }
table.usage-employers th:nth-child(1) { width: 30%; }
table.usage-employers th:nth-child(2) { width: 26%; }
table.usage-employers th:nth-child(3) { width: 14%; }
table.usage-employers th:nth-child(5) { width: 6.5rem; }
table.usage-employers td { color: var(--ink-2); }
table.usage-employers td a.sub { display: block; margin-top: 2px; color: var(--ink-2); font-weight: 400; font-size: 0.75rem; }
table.usage-employers td a.sub:first-of-type { margin-top: 4px; }
table.usage-employers .api { color: var(--muted); }
/* A jump to a section (#models) lands below the sticky top bar. */
h2[id] { scroll-margin-top: calc(var(--bar-h) + 16px); }
tr.more-row td { color: var(--muted); }
tr.more-row a { font-weight: 400; color: var(--ink-2); }
.note.lead-in { margin: 4px 0 14px; }
.note.after { margin-top: 18px; }
/* Reporting a wrong or missing model: a disclosure in hairlines. */
details.report { max-width: 40rem; margin: 20px 0 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
details.report summary { color: var(--ink-2); font-weight: 500; }
.report form { display: grid; gap: 12px; margin-top: 12px; font-size: 0.8125rem; }
.report fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; color: var(--ink-2); }
.report legend { font: 500 0.6875rem/1.4 var(--mono); color: var(--muted); margin-bottom: 4px; }
.report input[type="radio"] { accent-color: var(--accent); margin: 0 6px 0 0; }
.report select, .report textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 4px 8px; }
.report textarea { display: block; width: 100%; margin-top: 4px; }
.report .note { color: var(--ink-2); }
.report .btn { justify-self: start; }
.report .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
details ul { color: var(--ink-2); font-size: 0.8125rem; }
main > table, main > .table-wrap { margin: 8px 0 16px; }
.pager { display: flex; gap: 12px; justify-content: center; align-items: center; margin: 24px 0; font-size: 0.8125rem; }
.pager button { font: inherit; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: var(--ink); cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--muted); }
.pager button:disabled { opacity: 0.45; cursor: default; }
.pager .fig { color: var(--muted); font-size: 0.75rem; }

/* Text pages (methodology): a reading column. */
.prose { max-width: var(--measure); font-size: 1rem; line-height: 1.65; color: var(--ink-2); }
.prose h1 { color: var(--ink); margin-bottom: 20px; }
.prose h2 { color: var(--ink); margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose h3 { color: var(--ink); }
.prose a { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose code { background: var(--chip); color: var(--ink); padding: 1px 5px; border-radius: var(--r-tag); font-size: 0.8125rem; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { margin: 16px 0 20px; display: block; width: max-content; max-width: 100%; overflow-x: auto; font-size: 0.8125rem; }
.prose td { color: var(--ink-2); }

/* ---------- the board ---------- */

main:has(.board) { max-width: none; padding: 0; }
.board { display: flex; flex-direction: column; min-height: calc(100dvh - var(--bar-h)); }
.board-head { position: sticky; top: var(--bar-h); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 0; }
.board-search { position: relative; max-width: 44rem; }
.board-search input {
  width: 100%; height: 40px; padding: 0 40px 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--panel); color: var(--ink); font: inherit; font-size: 0.9375rem;
}
.board-search input:focus { outline: none; border-color: var(--accent); }
.board-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.board-search input:focus + kbd { visibility: hidden; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.filters-end { margin-left: auto; }
.toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  font-size: 0.8125rem; color: var(--ink-2); cursor: pointer; user-select: none; transition: border-color 120ms var(--ease);
}
.toggle:hover { border-color: var(--muted); }
.toggle input { accent-color: var(--accent); margin: 0; }
.toggle:has(input:checked) { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.toggle:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Where to work: a country menu and a remote toggle (Browse and topic pages). */
.place { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 22px; }
.place .select { position: relative; display: inline-flex; }
.place .select:not(:has(.menu))::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 5px; height: 5px; margin-top: -4px; pointer-events: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg);
}
.place select {
  height: 30px; max-width: 16rem; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: transparent; color: var(--ink-2); font: inherit; font-size: 0.8125rem; appearance: none; cursor: pointer;
}
.place select:hover { border-color: var(--muted); }
.place select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.place select option { background: var(--float); color: var(--ink); }
.place-clear { color: var(--muted); font-size: 0.8125rem; text-decoration: none; padding: 0 4px; }
.place-clear:hover { color: var(--ink); }

.board-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 8px 0 10px; font-size: 0.8125rem; color: var(--muted); }
#count { color: var(--ink-2); }
#count .fig { color: var(--ink); }
.board-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
.board-list { min-width: 0; padding-bottom: 24px; }
.board-list .rows .row { padding-left: var(--gutter); padding-right: var(--gutter); }
.board-list .rows li:first-child .row { border-top: 0; }
.rows[aria-busy="true"] { opacity: 0.6; transition: opacity 120ms var(--ease) 120ms; }
/* A load past 3 seconds (jobs.js): placeholder rows in the rows' own grid, bars in faint --muted.
   They pulse top to bottom, a few rows apart; with reduced motion they hold still. No gradients. */
.rows-wait { pointer-events: none; }
/* jobs.js swaps these for the placeholders with `hidden`, which their display rules would override. */
.rows[hidden], .pager[hidden] { display: none; }
.rows-wait .row { align-items: center; }
.rows-wait .row:hover { background: none; }
.rows-wait .r-main { align-items: center; gap: 12px; }
.rows-wait .r-pay, .rows-wait .r-age { display: flex; justify-content: flex-end; }
.bone { display: block; height: 8px; border-radius: var(--r-tag); background: color-mix(in srgb, var(--muted) 28%, transparent); }
.rows-wait .r-main .bone { flex: none; }
.rows-wait .r-main .bone:first-child { height: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .rows-wait { animation: wait-in 160ms var(--ease); }
  .rows-wait .bone { animation: wait 1.6s ease-in-out calc(var(--i) * 120ms) infinite; }
}
@keyframes wait-in { from { opacity: 0; } }
@keyframes wait { 50% { opacity: 0.4; } }
.board-keys {
  position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px var(--gutter);
  border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--muted); font-size: 0.75rem;
}
.board-keys kbd { margin-right: 4px; }
/* The one-time tip above the rows: keys where there's a keyboard, taps where there isn't. */
.board-tip { display: flex; align-items: center; gap: 8px 16px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.8125rem; }
.board-tip[hidden] { display: none; }
.board-tip p { margin: 0; flex: 1; }
.board-tip button { flex: none; font: inherit; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: var(--ink); cursor: pointer; }
.board-tip button:hover { border-color: var(--muted); }
.board-tip .tip-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .board-tip .tip-keys { display: none; }
  .board-tip .tip-touch { display: block; }
}
@media (max-width: 1099px) { .board-tip .tip-wide { display: none; } }

/* Menus (static/menu.js): the filter buttons and their listboxes, wherever a select is. */
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; max-width: 15rem;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: transparent; color: var(--ink-2);
  font: inherit; font-size: 0.8125rem; cursor: pointer; transition: border-color 120ms var(--ease);
}
.menu-btn:hover, .menu.open .menu-btn { border-color: var(--muted); color: var(--ink); }
.menu-btn .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn svg { flex: none; color: var(--muted); transition: transform 120ms var(--ease); }
.menu.open .menu-btn svg { transform: rotate(180deg); }
.filters .menu-btn.set, .place .menu-btn.set { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.filters .menu-btn.set svg, .place .menu-btn.set svg { color: var(--accent); }
.menu-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 25; display: none; min-width: 100%; width: max-content;
  max-width: min(22rem, calc(100vw - 32px)); padding: 4px; border: 0; border-radius: var(--r-panel); background: var(--float); box-shadow: var(--shadow);
}
.filters-end .menu-pop { left: auto; right: 0; }
.menu-pop input { width: 100%; height: 30px; margin-bottom: 4px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); color: var(--ink); font: inherit; font-size: 0.8125rem; }
.menu-pop input:focus { outline: none; border-color: var(--accent); }
.menu-list { max-height: 320px; overflow-y: auto; outline: none; }
.opt { display: flex; justify-content: space-between; gap: 20px; padding: 6px 9px; border-radius: var(--r-tag); font-size: 0.8125rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.opt .n { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.6875rem; color: var(--muted); }
.opt.active { background: var(--chip); color: var(--ink); }
.opt[aria-selected="true"] { color: var(--accent); }
.opt-empty { padding: 8px 9px; color: var(--muted); font-size: 0.8125rem; }

/* The preview: a pane beside the list on wide screens, a sheet over it below. */
.preview {
  position: fixed; inset: auto 0 0 0; z-index: 40; max-height: 86dvh; overflow-y: auto; padding: 20px var(--gutter) 32px;
  background: var(--panel); border-top: 1px solid var(--line); border-radius: var(--r-panel) var(--r-panel) 0 0; box-shadow: var(--shadow);
}
.preview:focus { outline: none; }
.scrim { position: fixed; inset: 0; z-index: 35; background: color-mix(in srgb, var(--bg) 60%, transparent); }
/* The Resume Workshop (docs/RESUME.md §5.5): its way in is "Tailor my resume" on every role. */
.workshop-go { margin: 22px 0 0; }
.workshop-go .btn { height: 40px; padding: 0 18px; }

@media (min-width: 1100px) {
  body.previewing .board-body { grid-template-columns: minmax(0, 1fr) minmax(24rem, 40%); }
  .preview {
    position: sticky; inset: auto; top: calc(var(--bar-h) + var(--head-h, 0px)); z-index: auto; align-self: start;
    height: calc(100dvh - var(--bar-h) - var(--head-h, 0px) - 37px); max-height: none; border-top: 0; border-left: 1px solid var(--line);
    border-radius: 0; box-shadow: none; padding: 20px 28px 40px;
  }
  body.previewing .row { grid-template-columns: minmax(0, 1fr) minmax(0, 10rem) 7.5rem 2.5rem; }
  body.previewing .r-area { display: none; }
}
.pane-head { position: relative; padding-right: 56px; }
.pane-close { position: absolute; right: 0; top: 0; font: 500 0.6875rem var(--mono); height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-tag); background: var(--chip); color: var(--ink-2); cursor: pointer; }
.pane-close:hover { color: var(--ink); }
.pane-org { margin: 0 0 4px; color: var(--ink-2); font-size: 0.8125rem; }
.preview h2 { margin: 0 0 16px; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
.pane-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.preview .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0 16px; }
.preview .facts dt { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); margin-bottom: 3px; }
.preview .facts dd { margin: 0; font-size: 0.8125rem; color: var(--ink); }
.preview .facts dd .long-open { display: block; margin-top: 2px; color: var(--warn); }
.preview .facts > div { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.preview .facts > div:nth-child(-n + 2) { border-top: 0; }
.pane-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.pane-desc { white-space: pre-wrap; font-size: 0.875rem; line-height: 1.65; color: var(--ink-2); padding-top: 16px; border-top: 1px solid var(--line); }
.pane-source { margin-top: 20px; font-size: 0.8125rem; }
.pane-loading { padding: 24px 0; }

.keys-dialog { border: 0; border-radius: var(--r-panel); padding: 20px 24px; background: var(--float); color: var(--ink); box-shadow: var(--shadow); width: min(24rem, calc(100vw - 32px)); }
.keys-dialog::backdrop { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.keys-dialog h2 { margin: 0 0 12px; font-size: 1rem; }
.keys-dialog dl { margin: 0 0 16px; }
.keys-dialog dl > div { display: grid; grid-template-columns: 7rem 1fr; padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.keys-dialog dt { color: var(--muted); }
.keys-dialog dd { margin: 0; color: var(--ink-2); }
.keys-dialog button { font: inherit; font-size: 0.8125rem; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: var(--ink); cursor: pointer; }
.toast {
  position: fixed; left: 50%; bottom: 56px; z-index: 50; transform: translate(-50%, 12px); padding: 10px 14px; border-radius: var(--r-ctl);
  background: var(--float); color: var(--ink); box-shadow: var(--shadow); font-size: 0.8125rem; opacity: 0; pointer-events: none;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
/* Centred by `left: 50%`, a toast would shrink to half the screen: size it to its text. */
.toast { width: max-content; max-width: min(32rem, calc(100vw - 32px)); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--accent); margin-left: 6px; }

/* ---------- smaller screens ---------- */


/* "Near you": a country suggested from the visitor's time zone (static/near.js). */
.near { margin: 12px 0 0; max-width: 60rem; color: var(--muted); font-size: 0.8125rem; }
.near a { color: var(--ink); }
.near a:hover { color: var(--accent); }
.near-why { color: var(--muted); }
/* The board's note when it starts on the visitor's country. */
.near-board { color: var(--ink-2); }
.near-board button { white-space: nowrap; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.near-board button:hover { color: var(--accent); }
@media (max-width: 1100px) {
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 11rem) 7rem 2.5rem; }
  .r-area { display: none; }
  .find { flex-wrap: wrap; }
  .find-q { flex: 1 1 100%; height: 52px; border-bottom: 1px solid var(--line); }
  .find-sel, .find-remote { height: 48px; }
  .find-sel:first-of-type { border-left: 0; }
  .find button { margin-left: auto; }
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 0; }
  .door, .door:first-child { padding: 14px 16px 16px; border-left: 0; border-bottom: 1px solid var(--line); }
  .door:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
  .door:first-child:hover { background: var(--panel); }
}
@media (max-width: 760px) {
  /* Models on a phone: the model (its organisation beneath), downloads and roles. */
  table.models .maker, table.models .task, table.models .likes, table.models .wide { display: none; }
  table.models th, table.models td { padding-left: 6px; padding-right: 6px; }
  table.models td:first-child { overflow-wrap: anywhere; }
  table.models .th-sort { margin: -5px -5px; padding: 4px 4px; gap: 3px; }
  .usage-strip dl > div { grid-template-columns: minmax(0, 1fr); }

  main { padding-top: 24px; }
  .bar-in { gap: 12px; height: auto; min-height: var(--bar-h); flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; }
  .bar-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; }
  .bar-nav a { padding: 6px 10px 6px 0; margin-right: 8px; }
  .bar-search { width: auto; flex: 1; max-width: 16rem; }
  .bar-search kbd { display: none; }
  body:has(.board) .bar-search { display: none; }
  body:has(.board) .bar-saved { margin-left: auto; }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
  .display { font-size: 2.125rem; margin-bottom: 20px; }
  .find { flex-wrap: wrap; }
  .find-q { flex: 1 1 100%; height: 50px; border-bottom: 1px solid var(--line); }
  .find-q kbd { display: none; }
  .find-q input { padding-right: 16px; }
  .find-sel { flex: 1 1 0; border-left: 0; height: 46px; }
  .find-sel + .find-sel { border-left: 1px solid var(--line); }
  .find-sel select, .find-sel .menu, .find-sel .menu-btn { width: 100%; max-width: none; }
  .find-remote { flex: 1 1 100%; height: 44px; border-left: 0; border-top: 1px solid var(--line); }
  .find button { flex: 1 1 100%; height: 44px; margin: 0 6px 6px; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .door, .door:first-child, .door:not(:nth-child(3n + 1)) { padding: 14px 12px 16px; border-left: 0; }
  .door:nth-child(even) { border-left: 1px solid var(--line); }
  .door:last-child { grid-column: 1 / -1; }
  .door:first-child:hover { background: var(--panel); }
  .account { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  td.employers, table.areas th:nth-child(4) { display: none; }
  body:has(.hero) .bar-search { display: none; }
  body:has(.hero) .bar-saved { margin-left: auto; }
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main pay" "place age"; gap: 2px 12px; padding-top: 10px; padding-bottom: 10px; }
  .r-main { grid-area: main; flex-direction: column; align-items: stretch; gap: 1px; }
  .r-title { white-space: normal; }
  .r-place { grid-area: place; }
  .r-pay { grid-area: pay; align-self: start; padding-top: 3px; }
  .r-age { grid-area: age; }
  .rows-wait .r-main { align-items: flex-start; gap: 8px; padding: 4px 0; }
  .how-list > div { grid-template-columns: minmax(0, 1fr); }
  .frame-foot .keys { display: none; }
  .board-keys { display: none; }
  .board-head { position: static; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .filters .menu-pop { position: fixed; top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; min-width: 0; max-width: none; }
  .filters-end { margin-left: 0; }
  ul.roles li { grid-template-columns: minmax(0, 1fr); }
  ul.roles .r { text-align: left; }
  table.directory td.src, table.directory th:nth-child(4) { display: none; }
  .score, .share { grid-template-columns: 3rem minmax(40px, 1fr); }
  table.index th:nth-child(n + 4):not(:last-child):not(:nth-last-child(2)), table.index td:nth-child(n + 4):not(:last-child):not(:nth-last-child(2)) { display: none; }
}
/* ---------- the sponsored box (docs/SPONSORED-PLAN.md §3) ----------
   A panel above the rows: rows are hairline-separated, so a panel can't pass for one. No amber,
   which marks the selection; not a stop for j/k. */
.sponsored { margin: 6px var(--gutter) 12px; }
.sponsored-label { margin: 0 0 6px; color: var(--muted); font-size: 0.75rem; }
/* "Why this?" opens in place (templates/sponsored_why.html): the label line is the toggle. */
.sponsored-about > summary { list-style: none; cursor: pointer; }
.sponsored-about > summary::-webkit-details-marker { display: none; }
.sponsored-why { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.sponsored-about > summary:hover .sponsored-why, .sponsored-about[open] .sponsored-why { text-decoration-color: currentColor; }
.sponsored-explain { margin: 0 0 10px; max-width: 60ch; color: var(--ink-2); font-size: 0.8125rem; line-height: 1.5; }
.sponsored-explain p { margin: 0 0 4px; }
.sponsored-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); color: var(--ink);
  text-decoration: none; transition: border-color 120ms var(--ease);
}
.sponsored-link:hover { border-color: var(--muted); }
.sponsored-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sponsored-title { font-size: 0.9375rem; font-weight: 500; overflow-wrap: anywhere; }
.sponsored-meta, .sponsored-line { color: var(--ink-2); font-size: 0.8125rem; }
.sponsored-side { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; flex: none; font-size: 0.8125rem; }
.sponsored-pay { color: var(--good); }
.sponsored-go { color: var(--ink-2); }
@media (max-width: 760px) {
  .sponsored-link { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .row.selected::before, .row:has(.row-link:focus-visible)::before { background: Highlight; }
  .meter > span { background: CanvasText; }
}
.spark { display: block; vertical-align: middle; }
.insight-nav a { margin-right: 14px; }
.bar, .range { display: block; vertical-align: middle; }
table.pay.kinds { max-width: none; }
.scroll { overflow-x: auto; }
/* The LinkedIn export walkthrough. */
.li-steps { margin: 0 0 16px; padding-left: 1.4em; max-width: 44rem; }
.li-steps li { padding: 8px 0 8px 4px; color: var(--ink-2); }
.li-steps b { color: var(--ink); font-weight: 600; }
.li .lede { max-width: 40rem; }

/* Insights: tables sorted by their headers, and the map's tooltip (static/insights.js). */
/* A column head that sorts (a link on the Models page, pages::SortHead; a button on Insights): a
   quiet bordered control, so it reads as something to press, with the direction it sorts now.
   The negative margin keeps its label in line with the column's figures. */
.th-sort, .sort-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: -5px -9px; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: transparent; color: var(--ink-2);
  font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; cursor: pointer;
  transition: color 120ms var(--ease), background-color 120ms var(--ease), border-color 120ms var(--ease);
}
th.n .th-sort, th.n .sort-btn { flex-direction: row-reverse; }
.th-sort:hover, .sort-btn:hover { color: var(--ink); background: var(--chip); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.th-sort:focus-visible, .sort-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--r-ctl); }
th[aria-sort] .th-sort, th[aria-sort] .sort-btn { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.sort-arrow { display: inline-block; width: 1ch; text-align: center; }
.sort-arrow::after { content: "↕"; opacity: 0.55; }
th[aria-sort] { color: var(--ink); }
th[aria-sort="ascending"] .sort-arrow::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] .sort-arrow::after { content: "↓"; opacity: 1; }
th a + .sort-btn { margin: -5px -9px -5px 6px; vertical-align: middle; }
.map-tip { position: fixed; z-index: 40; max-width: 17rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); box-shadow: 0 8px 24px rgba(0,0,0,.14); color: var(--ink-2); font: 400 0.8125rem/1.4 var(--font); pointer-events: none; }
.map-tip[hidden] { display: none; }
.map-tip .tip-name { color: var(--ink); font-weight: 700; font-size: 0.875rem; }
.map-tip .tip-about { margin-top: 2px; color: var(--ink-2); }
.map-tip .tip-pay { margin-top: 4px; color: var(--ink); font-weight: 600; }
.map-tip .tip-about + .tip-pay { margin-top: 6px; }
.map-tip .tip-sub { color: var(--muted); font-size: 0.75rem; }
.map-tip .tip-h { margin-top: 8px; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.map-tip ol { margin: 2px 0 0; padding: 0; list-style: none; }
.map-tip li { display: flex; justify-content: space-between; gap: 12px; }
.map-tip .tip-n { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Company and app pages: open roles under their functions (pages::role_sections). */
.sect-jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: 0.8125rem; }
.sect-jump a { color: var(--ink-2); text-decoration: none; }
.sect-jump a:hover { color: var(--ink); text-decoration: underline; }
.sect-jump .px, .role-sect .px { font-family: var(--mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.75rem; }
.role-sect { scroll-margin-top: calc(var(--bar-h) + 16px); }

/* ---------- buying a sponsored box (docs/SPONSORED-PLAN.md §6) ----------
   Rows and hairlines like the rest of the site; the chosen week wears the amber selection. */
.buy { max-width: 64rem; }
.buy-about, .buy-pay-page { max-width: var(--measure); }
.buy-crumb { margin: 0 0 10px; font-size: 0.8125rem; }
.buy-crumb a { color: var(--muted); }
.buy-crumb a:hover { color: var(--ink); }
.buy h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.buy-lede { color: var(--ink-2); font-size: 1rem; max-width: 62ch; margin: 0 0 24px; }
.buy-lede a { color: var(--ink); }
.buy-error { margin: 0 0 20px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); border-radius: var(--r-ctl); color: var(--ink); max-width: 62ch; }
.buy-none { color: var(--muted); margin: 8px 0 16px; }
.buy-hint { color: var(--muted); font-size: 0.8125rem; margin: 6px 0 0; max-width: 62ch; }
.buy-label { display: block; margin: 0 0 6px; color: var(--ink); font-size: 0.8125rem; font-weight: 500; }
.buy-optional { color: var(--muted); font-weight: 400; }
.buy input[type="search"], .buy input[type="text"] {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--panel); color: var(--ink); font: 400 0.9375rem var(--font);
}
.buy input[type="search"]:focus-visible, .buy input[type="text"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.buy-search { max-width: 36rem; margin: 0 0 20px; }
.buy-search label { display: block; margin: 0 0 6px; font-size: 0.8125rem; font-weight: 500; }
.buy-search-row { display: flex; gap: 8px; }
.buy-employers { list-style: none; margin: 10px 0 0; padding: 0; max-width: 36rem; border-top: 1px solid var(--line); }
.buy-employers a { display: flex; justify-content: space-between; gap: 16px; padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.buy-employers a:hover { background: var(--panel); }
.buy-employer { font-weight: 500; }
.buy-n { color: var(--muted); font: 400 0.75rem var(--mono); white-space: nowrap; }
.buy-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 32px 48px; align-items: start; }
.buy-field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.buy-field select, .buy-field .menu-btn { max-width: 100%; }
.buy-value { margin: 0; color: var(--ink-2); }
.buy-value a { color: var(--ink-2); }
.buy-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 6px; }
.buy-week { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); cursor: pointer; }
.buy-week input { position: absolute; opacity: 0; pointer-events: none; }
.buy-week:hover { border-color: var(--muted); }
.buy-week:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.buy-week:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.buy-week-day { color: var(--ink); font-size: 0.875rem; font-weight: 500; }
.buy-week-room { color: var(--muted); font: 400 0.6875rem var(--mono); }
.buy-week.full { cursor: default; opacity: 0.55; }
.buy-week.full:hover { border-color: var(--line); }
.buy-side { position: sticky; top: calc(var(--bar-h) + 20px); }
.buy-preview .sponsored, .buy-example .sponsored { margin: 0; }
.buy-example { margin: 24px 0 8px; }
.buy-what { scroll-margin-top: 72px; }
.buy-example figcaption { margin-top: 8px; color: var(--muted); font-size: 0.8125rem; }
.buy-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 20px 0 12px; color: var(--ink); }
.buy-total .fig { font-size: 1.25rem; }
.buy-total .buy-hint { margin: 0; flex-basis: 100%; }
.buy-pay { width: 100%; justify-content: center; }
.buy-go { margin: 20px 0 8px; }
.buy-closed { color: var(--muted); }
.buy table.buy-facts { max-width: min(40rem, 100%); }
.buy th[scope="row"] { font: 400 0.8125rem/1.5 var(--font); letter-spacing: 0; color: var(--ink-2); white-space: normal; border-top: 1px solid var(--line); border-bottom: 0; }
.buy-facts th[scope="row"] { width: 8rem; }
.buy-facts td { color: var(--ink-2); }
.buy-facts td a { color: var(--ink); }
.buy-counts, .buy-list, .buy-views, .buy-weeks-table { max-width: min(44rem, 100%); }
.buy-counts td.n, .buy-views td.n, .buy-counts th.n, .buy-views th.n { text-align: right; }
.buy-counts tr.all td, .buy-counts tr.all th { color: var(--ink); }
.buy-weeks-table tr.full td { color: var(--muted); }
.buy-list th[scope="row"] a { font: 500 0.8125rem var(--mono); }
.buy-state { color: var(--ink-2); font: 500 0.8125rem var(--font); }
h1 .buy-state { padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r-tag); letter-spacing: 0; }
.buy-state.live { color: var(--good); }
.buy-state.rejected, .buy-state.cancelled { color: var(--muted); }
.buy-reason { margin: 0 0 20px; padding: 2px 0 2px 14px; border-left: 2px solid var(--line); color: var(--ink-2); max-width: 62ch; }
.buy-reason p { margin: 0; }
.buy-others { list-style: none; padding: 0; }
.buy-scroll { max-width: 100%; overflow-x: auto; }
.buy-list td, .buy-list th { white-space: nowrap; }
@media (max-width: 860px) {
  .buy-cols { grid-template-columns: minmax(0, 1fr); }
  .buy-side { position: static; }
}
/* Papers (src/papers.rs): the title with its venue and basis beneath, then dates and counts. */
table.papers td:first-child { min-width: 0; }
table.papers td.when, table.papers td.cited { white-space: nowrap; }
@media (max-width: 760px) {
  table.papers .maker, table.papers .when { display: none; }
  table.papers th, table.papers td { padding-left: 6px; padding-right: 6px; }
  table.papers td:first-child { overflow-wrap: anywhere; }
}

/* The weekly email's sign-up (templates/digest_macros.html, src/digest.rs): a row under a hairline
   on job and topic pages, a line in the footer, and its own page at /digest. Email only. */
.digest { margin: 32px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 36rem; }
.digest-h { margin: 0; font: 600 0.9375rem/1.3 var(--font); color: var(--ink); }
.digest-what { margin: 4px 0 12px; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.digest-row { display: flex; gap: 8px; }
.digest-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.digest input[type="email"] {
  flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--panel); color: var(--ink); font: 400 0.9375rem var(--font);
}
.digest input::placeholder { color: var(--muted); }
.digest input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.digest button, .digest-act button {
  height: 36px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--float); color: var(--ink);
  font: 500 0.8125rem/1 var(--font); cursor: pointer; white-space: nowrap; transition: border-color 120ms var(--ease);
}
.digest button:hover, .digest-act button:hover { border-color: var(--muted); }
.digest .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.digest-foot { margin: 18px 0 0; padding: 0; border: 0; max-width: 30ch; }
.digest-foot .digest-h { font-size: 0.8125rem; }
.digest-foot .digest-row { flex-wrap: wrap; }
.digest-page { max-width: var(--measure); }
.digest-page h1 { margin-bottom: 12px; }
.digest-page .digest { border-top: 0; padding-top: 0; margin-top: 20px; }
.digest-lead { font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); }
.digest-act { margin: 20px 0; }
@media (max-width: 30rem) {
  .digest-row { flex-direction: column; }
  /* Stacked, `flex: 1` would size the field's height from zero: keep it a full touch target. */
  .digest input[type="email"] { flex: none; height: 44px; }
  .digest button { align-self: flex-start; height: 44px; }
}

/* A job search alert's sign-up (templates/alert_macros.html, src/job_alerts.rs): a link-like
   disclosure on the board, employer and topic pages that opens to the weekly email's form. */
.alert-box summary { display: inline; list-style: none; cursor: pointer; }
.alert-box summary::-webkit-details-marker { display: none; }
.alert-box summary:hover { text-decoration: underline; }
.alert-box summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.alert-box .alert-form { margin: 10px 0 4px; }
.alert-company, .alert-topic { margin: 20px 0 8px; }
.alert-closed { margin: 0 0 20px; }
/* Open on a closed role's page, its summary is the form's heading. */
.alert-box.alert-closed > summary { font: 600 0.9375rem/1.3 var(--font); color: var(--ink); text-decoration: none; }
.alert-list { list-style: none; padding: 0; margin: 16px 0; }
.alert-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.alert-list li:last-child { border-bottom: 1px solid var(--line); }
.alert-acts { margin-left: auto; display: flex; gap: 8px; }
.alert-often { border: 0; padding: 0; margin: 0 0 10px; color: var(--ink-2); }
.alert-often legend { padding: 0; margin-bottom: 4px; color: var(--muted); }
.alert-often label { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; cursor: pointer; }
.alert-often input { accent-color: var(--accent); margin: 0; }
.alert-stop { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.alert-stop:hover { color: var(--ink); border-color: var(--muted); }
.alert-box summary { color: var(--ink-2); }
.alert-box summary:hover { color: var(--ink); }

/* ---------- the board's job alert (templates/attentionhead/jobs.html, jobs.js) ----------
   The one filled button in the board's head, at the end of the count line: it names the alert
   and what the past week brought. It opens a dialog (the keys dialog's surface) that shows those
   roles, then asks how often and where. Asked for already (in this browser), it steps back to an
   outlined button. */
.alert-cta {
  align-self: center; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 12px;
  border: 1px solid var(--ink); border-radius: var(--r-ctl); background: var(--ink); color: var(--bg);
  font: 500 0.8125rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background-color 120ms var(--ease), border-color 120ms var(--ease);
}
.alert-cta:hover { background: var(--ink-2); border-color: var(--ink-2); }
.alert-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.alert-cta-fig { padding-left: 8px; border-left: 1px solid color-mix(in srgb, var(--bg) 30%, var(--ink)); color: color-mix(in srgb, var(--bg) 78%, var(--ink)); font-size: 0.75rem; }
.alert-cta kbd { background: transparent; border-color: color-mix(in srgb, var(--bg) 30%, var(--ink)); color: inherit; }
.alert-cta.is-asked { background: var(--panel); border-color: var(--line); color: var(--ink-2); }
.alert-cta.is-asked:hover { border-color: var(--muted); color: var(--ink); }
.alert-cta.is-asked kbd { border-color: var(--line); }
/* Under a page of rows: a hairline row, not a card. */
.alert-nudge {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 16px var(--gutter); border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2);
}
.alert-nudge p { margin: 0; max-width: 40rem; }
.alert-nudge .fig { color: var(--ink); }
.alert-nudge .btn { height: 32px; }
.alert-nudge kbd { margin-left: 2px; }
.alert-nudge[hidden] { display: none; }
.toast button.link { margin: 0 2px; color: var(--accent); }
.empty button.link { color: var(--ink); }

.alert-dialog {
  border: 0; border-radius: var(--r-panel); padding: 24px; background: var(--float); color: var(--ink);
  box-shadow: var(--shadow); width: min(30rem, calc(100vw - 32px));
}
.alert-dialog::backdrop { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.alert-dialog [hidden] { display: none; }
.alert-close {
  position: absolute; right: 16px; top: 16px; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-tag);
  background: var(--chip); color: var(--ink-2); font: 500 0.6875rem var(--mono); cursor: pointer;
}
.alert-close:hover { color: var(--ink); }
.alert-kind { margin: 0 0 6px; color: var(--muted); font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.02em; }
.alert-dialog h2 { margin: 0 64px 10px 0; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
.alert-dialog h2:focus { outline: none; }
.alert-proof { margin: 0 0 14px; color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; }
.alert-proof .fig { color: var(--ink); }
.alert-sample { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.alert-sample li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.alert-sample-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.alert-sample-org { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.alert-sample .alert-sample-more { justify-content: flex-start; color: var(--muted); }
.alert-dialog .alert-form { margin: 0; }
.alert-dialog .alert-often { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.alert-dialog .alert-often legend { margin-bottom: 6px; font-size: 0.8125rem; }
.alert-dialog .alert-often label {
  position: relative; display: block; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--panel); font-size: 0.75rem; line-height: 1.4; color: var(--muted); cursor: pointer;
  transition: border-color 120ms var(--ease), background-color 120ms var(--ease);
}
.alert-dialog .alert-often label:hover { border-color: var(--muted); }
.alert-dialog .alert-often b { display: block; margin-bottom: 2px; font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.alert-dialog .alert-often input { position: absolute; opacity: 0; pointer-events: none; }
.alert-dialog .alert-often label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.alert-dialog .alert-often label:has(input:checked) b { color: var(--accent); }
.alert-dialog .alert-often label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.alert-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.8125rem; }
.alert-row { display: flex; gap: 8px; }
.alert-row input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--panel); color: var(--ink); font: 400 0.9375rem var(--font);
}
.alert-row input::placeholder { color: var(--muted); }
.alert-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.alert-row .btn { height: 40px; padding: 0 16px; }
.alert-row .btn:disabled { opacity: 0.6; cursor: default; }
.alert-error { margin: 10px 0 0; color: var(--bad); font-size: 0.8125rem; }
.alert-fine { margin: 12px 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.alert-sent .btn { margin-top: 18px; }
.alert-dialog .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) {
  .alert-cta { margin-left: 0; height: 36px; }
  .alert-cta kbd, .alert-nudge kbd { display: none; }
  /* A sheet from the bottom on phones, as the filter menus are. */
  .alert-dialog { width: 100%; max-width: none; margin: auto 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: var(--r-panel) var(--r-panel) 0 0; }
  .alert-row { flex-direction: column; }
  .alert-row input, .alert-row .btn { flex: none; height: 44px; justify-content: center; }
  .alert-nudge .btn { height: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .alert-dialog[open] { animation: alert-in 160ms var(--ease); }
  @keyframes alert-in { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------- recent searches ----------
   The clock in the board's search field (H) opens the reader's recent searches over the board
   (static/search_history.js; structure in static/brand.css): the keys dialog's float surface, its
   rows as the board's rows (hairlines, the selected one's amber edge), times in mono. The board
   behind blurs, by the owner's request (2026-11-10), the one blur besides the top bar's; the clock
   is the one drawn icon, also by request. */
.board-search.has-history input { padding-right: 76px; }
.board-search.has-history kbd { right: 44px; }
.board-search .sh-button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border-radius: var(--r-ctl); }
.history-note { color: var(--ink-2); }
.history-note button.link:hover { color: var(--accent); }
.sh { border-radius: var(--r-panel); box-shadow: var(--shadow); }
.sh-head { border-bottom: 1px solid var(--line); }
.sh-title { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
.sh-close {
  height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-tag);
  background: var(--chip); color: var(--ink-2); font: 500 0.6875rem var(--mono);
}
.sh-close:hover { color: var(--ink); }
.sh-group { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.02em; }
.sh-item + .sh-item .sh-use { border-top: 1px solid var(--line); }
.sh-use { min-height: 52px; }
.sh-use:hover { background: var(--panel); }
.sh-use:focus-visible { background: var(--panel); box-shadow: inset 2px 0 0 var(--accent); }
.sh-q { font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); }
.sh-q:not(.sh-any)::before { content: "“"; color: var(--muted); }
.sh-q:not(.sh-any)::after { content: "”"; color: var(--muted); }
.sh-any { color: var(--ink-2); font-weight: 400; }
.sh-chip { padding: 1px 6px; border-radius: var(--r-tag); background: var(--chip); color: var(--ink-2); font-size: 0.75rem; line-height: 1.5; }
.sh-when { font: 400 0.75rem/1.4 var(--mono); font-stretch: 87.5%; }
.sh-del { border-radius: var(--r-ctl); }
.sh-empty { font-size: 0.875rem; padding-top: 20px; }
.sh-foot { border-top: 1px solid var(--line); font-size: 0.75rem; }
.sh-where a { color: var(--ink-2); }
.sh-where a:hover { color: var(--accent); }
@media (prefers-color-scheme: dark) { .sh::backdrop { background: color-mix(in srgb, var(--bg) 62%, transparent); } }
@media (max-width: 760px) {
  .sh { border-radius: var(--r-panel) var(--r-panel) 0 0; }
  .board-search.has-history input { padding-right: 44px; }
}

/* ---------- your skills (static/fit.js) ----------
   The filter bar's "Your skills" button is a filter button; set, it is the active filter's
   amber. Each row the reader matches says how many of its skills they have; the preview marks
   theirs. The picker is the keys dialog's float surface, terms as 4px tags, the picked ones
   amber like a set filter; a sheet on phones. */
.fit-open {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; margin-right: 6px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: transparent; color: var(--ink-2);
  font: inherit; font-size: 0.8125rem; cursor: pointer; transition: border-color 120ms var(--ease);
}
.fit-open:hover { border-color: var(--muted); color: var(--ink); }
.fit-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fit-open.set { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.fit-open .fig { font-size: 0.75rem; }
.r-fit { flex: none; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.r-fit .fig { color: var(--accent); font-size: 0.75rem; }
.pane-skills .tag.mine { background: var(--accent-soft); color: var(--accent); }

.fit-dialog {
  border: 0; border-radius: var(--r-panel); padding: 0; background: var(--float); color: var(--ink); box-shadow: var(--shadow);
  width: min(40rem, calc(100vw - 32px)); max-height: min(44rem, calc(100vh - 48px));
}
.fit-dialog[open] { display: flex; }
.fit-dialog::backdrop { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.fit-form { display: flex; flex-direction: column; min-height: 0; width: 100%; margin: 0; }
.fit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.fit-head h2 { margin: 0; font-size: 1rem; }
.fit-count { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.75rem; color: var(--muted); }
.fit-lede { margin: 6px 24px 12px; color: var(--ink-2); font-size: 0.8125rem; max-width: 34rem; }
.fit-body { overflow-y: auto; padding: 0 24px; border-top: 1px solid var(--line); }
.fit-group { border: 0; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fit-group:last-child { border-bottom: 0; }
.fit-group legend { padding: 0 0 8px; font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.fit-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.fit-term, .fit-level {
  font: inherit; font-size: 0.8125rem; line-height: 1.5; padding: 2px 9px; border: 1px solid transparent; border-radius: var(--r-tag);
  background: var(--chip); color: var(--ink-2); cursor: pointer; transition: color 120ms var(--ease), background 120ms var(--ease);
}
.fit-term:hover, .fit-level:hover { color: var(--ink); }
.fit-term:focus-visible, .fit-level:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fit-term[aria-pressed="true"], .fit-level[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.fit-term:disabled { opacity: 0.45; cursor: default; }
.fit-note { margin: 0; padding: 12px 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
.fit-actions { display: flex; gap: 8px; padding: 12px 24px 20px; }
.fit-actions button { font: inherit; font-size: 0.8125rem; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); color: var(--ink); cursor: pointer; }
.fit-actions .fit-clear { margin-right: auto; background: transparent; color: var(--ink-2); }
.fit-actions .fit-save { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fit-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .fit-dialog { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: var(--r-panel) var(--r-panel) 0 0; }
  .fit-head, .fit-lede, .fit-body, .fit-note, .fit-actions { padding-left: 16px; padding-right: 16px; }
  .fit-lede { margin-left: 16px; margin-right: 16px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .fit-term, .fit-level, .fit-open { transition: none; } }

/* The first-visit tip on "Your skills" (static/fit.js `tip`): once per browser, under the button
   (above it when there's no room), which glows while it shows. */
.fit-tip {
  position: fixed; z-index: 60; width: min(20rem, calc(100vw - 32px)); padding: 14px 16px;
  background: var(--float); color: var(--ink); border: 0; border-radius: var(--r-panel); box-shadow: var(--shadow);
}
.fit-tip::before {
  content: ""; position: absolute; top: -6px; left: calc(var(--arrow-x, 50%) - 6px); width: 10px; height: 10px;
  background: inherit; border: inherit; border-width: 1px 0 0 1px; transform: rotate(45deg);
}
.fit-tip.above::before { top: auto; bottom: -6px; border-width: 0 1px 1px 0; }
.fit-tip-title { margin: 0 0 4px; font: 500 0.875rem/1.35 var(--font-display, inherit); }
.fit-tip-text { margin: 0 0 12px; color: var(--ink-2); font-size: 0.8125rem; line-height: 1.5; }
.fit-tip-actions { display: flex; gap: 8px; }
.fit-tip-actions button {
  font: inherit; font-size: 0.8125rem; height: 30px; padding: 0 12px; border-radius: var(--r-ctl); cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
}
.fit-tip-actions .fit-tip-go { border-color: transparent; background: var(--ink); color: var(--bg); }
.fit-tip-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fit-glow { box-shadow: 0 0 0 3px var(--accent-soft); animation: fit-glow 1.6s ease-in-out 3; }
@keyframes fit-glow { 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }
@media (prefers-reduced-motion: reduce) { .fit-glow { animation: none; } }
@media (forced-colors: active) { .fit-tip { border: 1px solid CanvasText; } .fit-glow { outline: 2px solid Highlight; } }

/* The board's rows end in their Save button (static/saves.js); the landing page's rows have none. */
#rows .row { grid-template-columns: minmax(0, 1fr) minmax(0, 13rem) 11rem 7.5rem 2.5rem 2rem; }
@media (min-width: 1100px) { body.previewing #rows .row { grid-template-columns: minmax(0, 1fr) minmax(0, 10rem) 7.5rem 2.5rem 2rem; } }
@media (max-width: 1100px) { #rows .row { grid-template-columns: minmax(0, 1fr) minmax(0, 11rem) 7rem 2.5rem 2rem; } }
@media (max-width: 760px) {
  #rows .row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "main pay save" "place age save"; }
  #rows .row .row-save { grid-area: save; margin-right: -6px; }
}
