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

/* Portrait: crafted and tactile, light first (docs/design/PORTRAIT.md, from Things' soft depth,
   Mobbin's device-shaped tiles and Family's warm neutrals). Colours, shadows and families are
   tokens from static/brand.css, served before this file; nothing here is a raw colour. No blur,
   no mono, no pills. */

:root {
  --r-card: 22px; --r-tile: 28px; --r-ctl: 14px; --r-chip: 10px;
  --width: 72rem; --measure: 38rem; --gutter: clamp(16px, 4vw, 40px);
  --sect: clamp(72px, 9vw, 112px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --well: inset 0 0 0 1px var(--line);
  --tab-h: 56px;
}

/* ---------- 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 1.0625rem/1.55 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 800; }
p, dd, li { text-wrap: pretty; }
h1 { font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 12px; }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; margin: 56px 0 12px; }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.fig { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -120px; z-index: 30; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--panel); box-shadow: var(--lift-2); }
.skip:focus { top: 12px; }
main { max-width: var(--width); margin: 0 auto; padding: 24px var(--gutter) 96px; }
.card { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); }

/* The platform dots: Things' colour per list, as small objects. */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ios { background: var(--ios); }
.dot.android { background: var(--android); }
.dot.cross { background: var(--cross); }
.badge-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--badge); }

/* ---------- top bar and the phone tab bar ---------- */

.top-in { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { text-decoration: none; color: var(--ink); display: inline-flex; }
.top-nav { display: flex; gap: 4px; margin-left: 8px; }
.top-nav a, .top-saved {
  padding: 8px 12px; border-radius: var(--r-ctl); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 0.9375rem;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.top-nav a:hover, .top-saved:hover { background: var(--chip); color: var(--ink); }
.top-nav a[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: var(--lift-1); }
.top-saved { margin-left: auto; }
.top-saved[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: var(--lift-1); }
/* Alerts and Saved sit together: the pair takes the margin a lone Saved did. */
.top-in .top-alerts + .top-saved { margin-left: -24px; }
.tabbar { display: none; }

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

.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: var(--width); margin: 0 auto; padding: 48px var(--gutter) 56px; display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-about p { color: var(--ink-2); font-size: 0.9375rem; max-width: 26rem; margin-top: 14px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; }
.foot h2 { font: 700 0.8125rem/1.35 var(--font); letter-spacing: 0.01em; color: var(--muted); margin: 0 0 4px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot nav a span { color: var(--muted); }

/* ---------- controls ---------- */

.btn, .apply, .track button, .track .button {
  height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-ctl); background: var(--panel); color: var(--ink);
  box-shadow: var(--lift-1); font: 700 0.9375rem/1 var(--font); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease), background-color 200ms var(--ease);
}
.btn:hover, .track button:hover, .track .button:hover { box-shadow: var(--lift-2); }
.btn:active, .apply:active, .role:active, .plat:active { transform: scale(0.985); }
.btn.primary, .apply { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover, .apply:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn.saved { color: var(--accent); }
.btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
input[type="search"], select, .menu-btn {
  font: 400 1rem/1.2 var(--font); color: var(--ink); background: var(--chip); border: 0; box-shadow: var(--well);
  border-radius: var(--r-ctl); height: 44px; padding: 0 14px; min-width: 0;
}
input[type="search"]::placeholder { color: var(--muted); }
input[type="search"]:focus-visible, select:focus-visible, .menu-btn:focus-visible { outline-offset: 0; }
select, .menu-btn { appearance: none; padding-right: 36px; font-size: 0.9375rem; font-weight: 600; cursor: pointer; max-width: 16rem; }
/* Menus (static/menu.js): the select's look, its chevron drawn by .select; the list a lifted card. */
.select .menu-chev { display: none; }
.menu-pop { padding: 6px; border: 0; border-radius: var(--r-ctl); box-shadow: var(--lift-2); }
.menu-pop input { height: 36px; border: 0; border-radius: var(--r-chip); background: var(--chip); box-shadow: var(--well); font: 400 0.9375rem var(--font); }
.opt { padding: 8px 10px; border-radius: var(--r-chip); font-size: 0.9375rem; font-weight: 600; }
.opt .n { font-family: var(--font); font-weight: 600; }
.filters .menu-btn.set, .place .menu-btn.set { background: var(--accent-soft); color: var(--accent); }
.select { position: relative; display: inline-flex; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 6px; height: 6px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.toggle { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: var(--r-ctl); background: var(--chip); box-shadow: var(--well); font-weight: 600; font-size: 0.9375rem; cursor: pointer; white-space: nowrap; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.toggle:has(input:checked) { background: var(--accent-soft); color: var(--accent); }
.toggle:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The segmented control: a well holding the choices, the chosen one raised on a thumb. */
.seg { display: inline-flex; gap: 2px; padding: 3px; margin: 0; border: 0; border-radius: 12px; background: var(--chip); box-shadow: var(--well); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg label { position: relative; flex: 1 0 auto; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 0.9375rem; color: var(--ink-2); white-space: nowrap; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease); }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--panel); color: var(--ink); box-shadow: var(--lift-1); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 0; border-radius: var(--r-chip);
  background: var(--chip); box-shadow: var(--well); color: var(--ink-2); font: 600 0.8125rem/1.35 var(--font); text-decoration: none;
}
a.chip, button.chip { cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease); }
a.chip:hover, button.chip:hover, .chip a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); }
button.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.chip a { color: inherit; text-decoration: none; }
.chip .n { color: var(--muted); font-weight: 600; }
.chip.ai { background: var(--accent-soft); color: var(--accent); }
.label { display: block; font: 700 0.8125rem/1.35 var(--font); letter-spacing: 0.01em; color: var(--muted); }

/* ---------- role rows inside a card (the phone, the board) ---------- */

.group { list-style: none; margin: 0; padding: 0; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); overflow: hidden; }
.group > li + li .role::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; border-top: 1px solid var(--line); }
.role {
  position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 2px 12px; align-items: start;
  padding: 14px 20px 14px 18px; text-decoration: none; color: var(--ink); transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.role:hover { background: color-mix(in srgb, var(--chip) 55%, var(--panel)); }
.role:has(.role-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: var(--r-card); }
/* A row is its role's link (the title, stretched over the row) with its employer's link on top. */
.role-link { color: inherit; text-decoration: none; }
.role-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.role-link:focus-visible { outline: none; }
.role-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; }
.role-org .org:hover { color: var(--accent); text-decoration-color: currentColor; }
.role-dots { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; }
.role-main { display: flex; flex-direction: column; min-width: 0; }
.role-title { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.role-org { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; margin-top: 2px; }
.role-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.role-chips .chip { padding: 2px 8px; font-size: 0.75rem; }
.role-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-top: 1px; text-align: right; }
.role-pay { color: var(--good); font-weight: 700; font-size: 0.9375rem; white-space: nowrap; }
.role-age { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
/* The board's rows end in their Save button (static/saves.js); the landing page's cards have none. */
.role:has(> .row-save) { grid-template-columns: 12px minmax(0, 1fr) auto auto; }
.role .row-save { margin: -4px -8px 0 0; align-self: start; }

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

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(24px, 5vw, 64px) 0 8px; }
.display { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 32px; max-width: 15ch; }
.display .quiet { display: block; margin-top: 18px; font: 600 clamp(1.125rem, 1rem + 0.5vw, 1.375rem)/1.4 var(--font); letter-spacing: -0.005em; color: var(--ink-2); max-width: 32rem; }
.find { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-2); padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 38rem; }
.find-q input { width: 100%; height: 52px; font-size: 1.0625rem; }
.find-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.find-row > * { min-width: 0; }
.find-row .btn { height: 44px; }
.live { display: flex; align-items: center; gap: 8px; margin: 18px 4px 0; color: var(--muted); font-size: 0.9375rem; }

/* The phone: the product as the hero, in the shape the site is named for. */
.phone { justify-self: center; width: min(100%, 360px); padding: 10px; border-radius: 46px; background: var(--panel); box-shadow: var(--lift-2), inset 0 0 0 1px var(--line); }
.phone-screen { border-radius: 36px; background: var(--bg); padding: 18px 12px 12px; aspect-ratio: 9 / 18.5; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.phone-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 8px 0; }
.phone-head h2 { font-size: 1.5rem; margin: 0; }
.phone-head .muted { font-size: 0.8125rem; }
.phone .group { flex: 1; overflow: hidden; border-radius: 20px; box-shadow: none; }
.phone .role { padding: 11px 14px 11px 12px; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 1px 10px; }
.phone .group > li + li .role::before { left: 14px; }
.phone .role-title { font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phone .role-org { font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .role-chips { display: none; }
.phone .role-pay { font-size: 0.8125rem; }
.phone .role-age { font-size: 0.75rem; }
.phone-more { display: flex; justify-content: center; align-items: center; height: 44px; border-radius: var(--r-ctl); background: var(--panel); font-weight: 700; font-size: 0.9375rem; text-decoration: none; }

.sect { margin-top: var(--sect); }
.sect-head { max-width: 38rem; margin-bottom: 28px; }
.sect-head h2 { margin: 0 0 10px; }
.sect-head p { color: var(--ink-2); margin: 0; }
.go { font-weight: 700; font-size: 0.9375rem; color: var(--ink); text-decoration: none; }
a.go:hover { text-decoration: underline; }

/* Three platforms. */
.plats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plat {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; background: var(--panel); border-radius: var(--r-card);
  box-shadow: var(--lift-1); text-decoration: none; color: var(--ink); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.plat:hover { box-shadow: var(--lift-2); transform: translateY(-1px); }
.plat-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.0625rem; }
.plat-name .dot { width: 10px; height: 10px; }
.plat-n { font: 800 clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem)/1 var(--font-display); letter-spacing: -0.02em; margin-top: 12px; }
.plat-sub { color: var(--ink-2); font-size: 0.9375rem; }
.plat-pay { font-size: 0.9375rem; color: var(--ink-2); padding: 12px 0; margin-top: 6px; border-top: 1px solid var(--line); }
.plat-pay b { color: var(--good); }
.plat-top { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.plat-top .label { margin-bottom: 2px; }
.plat-term { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; font-weight: 600; }
.plat-term .fig { color: var(--muted); font-weight: 600; }
.plat .go { margin-top: auto; }

/* Native or cross-platform. */
.mix { padding: 22px 24px; }
.mix-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 16px; font-size: 0.875rem; color: var(--ink-2); font-weight: 600; }
.mix-key span { display: inline-flex; align-items: center; gap: 7px; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.key.native, .mix-bar .native { background: var(--ink-2); }
.key.cross, .mix-bar .cross { background: var(--cross); }
.key.rest, .mix-bar .rest { background: var(--chip); box-shadow: var(--well); }
.mix-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mix-rows li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 15rem; gap: 16px; align-items: center; font-size: 0.9375rem; }
.mix-month { font-weight: 700; }
.mix-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.mix-bar > span { display: block; min-width: 0; }
.mix-fig { color: var(--ink-2); text-align: right; white-space: nowrap; }

/* Who builds with what: portrait tiles on a shelf. */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; aspect-ratio: 9 / 14; background: var(--panel);
  border-radius: var(--r-tile); box-shadow: var(--lift-1); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.tile:hover { box-shadow: var(--lift-2); transform: translateY(-1px); }
.tile-name { font: 800 1.25rem/1.15 var(--font-display); letter-spacing: -0.015em; margin: 0; overflow-wrap: anywhere; }
.tile-name a { text-decoration: none; }
.tile-name a:hover { text-decoration: underline; }
.tile-n { color: var(--ink-2); font-size: 0.9375rem; margin: 0; }
.tile-n .fig { font-weight: 800; color: var(--ink); }
.split { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--chip); margin-top: 4px; }
.split > span { display: block; }
.split .ios { background: var(--ios); }
.split .android { background: var(--android); }
.split .cross { background: var(--cross); }
.split-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 0.8125rem; color: var(--ink-2); font-weight: 600; }
.split-key > span { display: inline-flex; align-items: center; gap: 6px; }
.tile-line { font-weight: 700; font-size: 0.9375rem; line-height: 1.35; margin: 8px 0 0; }
.tile-terms { list-style: none; margin: 0; padding: 10px 12px; border-radius: 16px; background: var(--chip); box-shadow: var(--well); display: grid; gap: 4px; font-size: 0.875rem; }
.tile-terms li { display: flex; justify-content: space-between; gap: 10px; }
.tile-terms .fig { color: var(--muted); font-weight: 600; }
.tile .go { margin-top: auto; padding-top: 6px; }

/* Pay: range bars on one axis. */
.pay-chart { padding: 8px 24px 18px; }
.pay-group h3 { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; }
.pay-group ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pay-group li { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 16rem; gap: 16px; align-items: center; font-size: 0.9375rem; }
.pay-level { font-weight: 600; color: var(--ink-2); }
.range { position: relative; height: 10px; border-radius: 5px; background: var(--chip); box-shadow: var(--well); }
.range .fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--muted); }
.range.ios .fill { background: var(--ios); }
.range.android .fill { background: var(--android); }
.range.cross .fill { background: var(--cross); }
.range .tick { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.pay-fig { text-align: right; white-space: nowrap; }
.pay-fig b { color: var(--good); }
.axis { display: flex; justify-content: space-between; max-width: none; margin: 14px 0 0 calc(7rem + 16px); width: calc(100% - 7rem - 16rem - 32px); color: var(--muted); font-size: 0.8125rem; font-weight: 600; }

/* Start from a stack. */
.stack-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 8px 28px; }
.stack-group h3 { margin: 12px 0 0; font-size: 0.9375rem; color: var(--ink-2); }

.account { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; }
.account h2 { margin: 0 0 8px; }
.account p { color: var(--ink-2); margin: 0; max-width: 36rem; }
.how-list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-list > div { padding: 22px; border-radius: var(--r-card); background: var(--chip); box-shadow: var(--well); }
.how-list dt { font-weight: 800; margin-bottom: 8px; }
.how-list dd { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

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

.board-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 24px; }
.board-title { margin: 8px 0 0; }
.board-search input { width: 100%; max-width: 46rem; height: 52px; font-size: 1.0625rem; background: var(--panel); box-shadow: var(--lift-1); }
.board-head .seg { justify-self: start; }
.stack-bar { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 2px 0 4px; }
.stack-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stack-set .label { margin-right: 4px; white-space: nowrap; }
.stack-set .chip { white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .sort { margin-left: auto; }
.board-body { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 20rem); gap: 32px; align-items: start; }
.board-count { margin: 0 0 6px; color: var(--ink-2); font-size: 0.9375rem; }
.board-count .fig { color: var(--ink); font-weight: 800; }
.day + .day { margin-top: 24px; }
.day-name { font: 800 1.25rem/1.2 var(--font-display); letter-spacing: -0.015em; margin: 18px 4px 10px; }
#groups[aria-busy="true"] { opacity: 0.6; transition: opacity 200ms var(--ease); }
/* A load past 3 seconds (jobs.js): a day's card of placeholder roles in the cards' own layout,
   shapes in the --chip well colour. They breathe top to bottom; with reduced motion they hold
   still. No gradients. */
.groups-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; }
.groups-wait .role:hover { background: none; }
.groups-wait .role-main { gap: 8px; padding-top: 3px; }
.groups-wait .role-chips { margin-top: 2px; }
.groups-wait .role-side { gap: 8px; padding-top: 3px; }
.bone { display: block; height: 10px; border-radius: 5px; background: var(--chip); }
.bone-title { height: 14px; border-radius: 7px; }
.bone-dot { height: 8px; border-radius: 50%; }
.bone-chip { height: 22px; border-radius: var(--r-chip); }
.bone-day { height: 20px; border-radius: 8px; margin: 18px 4px 12px; }
@media (prefers-reduced-motion: no-preference) {
  .groups-wait { animation: wait-in 200ms var(--ease); }
  .groups-wait .role .bone { animation: wait 1.6s ease-in-out calc(var(--i) * 140ms) infinite; }
}
@keyframes wait-in { from { opacity: 0; } }
@keyframes wait { 50% { opacity: 0.45; } }
.empty { padding: 24px; color: var(--ink-2); }
.pager { display: flex; gap: 12px; justify-content: center; align-items: center; margin: 28px 0 0; }
.pager .fig { color: var(--muted); font-size: 0.9375rem; font-weight: 600; }

.summary { padding: 22px; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); }
.summary:empty { display: none; }
.summary h2 { font: 700 0.8125rem/1.35 var(--font); letter-spacing: 0.01em; color: var(--muted); margin: 0; }
.summary h3 { font-size: 0.9375rem; margin: 22px 0 8px; }
.sum-n { font: 800 2.25rem/1.1 var(--font-display); letter-spacing: -0.02em; margin: 6px 0 12px; }
.sum-n .fig { font: inherit; }
.summary .split-key { margin-top: 10px; }
.sum-terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sum-terms button { width: 100%; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 3rem; gap: 10px; align-items: center; padding: 6px 8px; margin: 0 -8px; border: 0; border-radius: var(--r-chip); background: none; color: var(--ink); font: 600 0.875rem/1.3 var(--font); text-align: left; cursor: pointer; transition: background-color 200ms var(--ease); }
.sum-terms button:hover { background: var(--chip); }
.sum-terms button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.sum-terms .bar { height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.sum-terms .bar span { display: block; height: 100%; background: var(--bar); border-radius: 3px; }
.sum-terms .fig { text-align: right; color: var(--muted); }

/* The sheet: from the bottom on phones, a card in the middle wider up. */
.sheet { width: min(44rem, calc(100% - 32px)); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: var(--r-tile); background: var(--panel); color: var(--ink); box-shadow: var(--lift-2); overflow: hidden; }
.sheet::backdrop { background: rgba(20, 16, 12, 0.36); }
.sheet[open] { animation: rise 280ms var(--ease); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-in { position: relative; max-height: min(88vh, 900px); overflow-y: auto; padding: 28px 32px 32px; }
.grabber { display: none; }
.sheet-close { position: absolute; top: 18px; right: 18px; margin: 0; }
.sheet-close .btn { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.sheet-org { color: var(--ink-2); font-weight: 700; margin: 0 96px 4px 0; }
.sheet h2 { margin: 0 96px 4px 0; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.sheet .facts { margin: 0 0 20px; }
.sheet-desc { white-space: pre-line; color: var(--ink-2); line-height: 1.65; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: var(--r-ctl); background: var(--ink); color: var(--bg); font-weight: 600; transition: opacity 200ms var(--ease), transform 200ms var(--ease); z-index: 40; }
.toast a { color: inherit; }
/* 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; }

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

.crumbs { font-size: 0.875rem; color: var(--muted); margin: 8px 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
main > h1 { margin-top: 8px; }
main > h1 + .muted, main > h1 + p.muted { color: var(--ink-2); font-size: 1.0625rem; max-width: 56ch; }
main > h1 + div.muted { font-size: 0.9375rem; }
/* A term's topic page: what it is in this site's work (src/about), then its counts. */
main > .topic-about { margin-bottom: 8px; }
main > .topic-about p { color: var(--ink-2); font-size: 1.0625rem; max-width: 56ch; }
main > .topic-about + p.muted { font-size: 0.9375rem; }
main > h1 + div.muted a { color: var(--ink-2); }
/* Nunito Sans's tabular zero is wide, so 56ch is about 70 characters of running text. */
main p, main > details { max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 8px; margin: 24px 0; padding: 0; }
.facts > div { padding: 12px 14px; border-radius: var(--r-chip); background: var(--chip); box-shadow: var(--well); font-size: 0.9375rem; }
.facts .l, .facts dt { font: 700 0.8125rem/1.35 var(--font); letter-spacing: 0.01em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; }
.facts strong { font: 800 1.25rem/1.2 var(--font-display); }
.facts > div:has(.salary), .facts > div:has(.pay) { grid-column: span 2; }
.salary, span.pay { color: var(--good); font-weight: 700; }
.apply { margin: 16px 0 8px; }
.track { display: inline-block; margin: 16px 0 8px 8px; vertical-align: top; }
.notice { background: color-mix(in srgb, var(--warn) 10%, var(--panel)); color: var(--ink); padding: 12px 16px; border-radius: var(--r-ctl); margin: 16px 0; max-width: 44rem; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent); }
.description { margin-top: 28px; padding: 28px 32px; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); max-width: 46rem; }
.description p, .description ul { margin: 0 0 14px; }
.description strong { color: var(--ink); font-weight: 700; }
.description ul { padding-left: 20px; }
ul.roles { list-style: none; margin: 0; padding: 0; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); overflow: hidden; max-width: 52rem; }
ul.roles li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 24px; align-items: baseline; padding: 14px 20px; }
ul.roles li + li::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; border-top: 1px solid var(--line); }
ul.roles .t { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
ul.roles .t:hover { text-decoration: underline; }
ul.roles .m { color: var(--ink-2); font-size: 0.9375rem; }
ul.roles .r { color: var(--muted); font-size: 0.875rem; text-align: right; white-space: nowrap; }
.links { columns: 3 14rem; column-gap: 32px; font-size: 0.9375rem; }
.links a { display: block; padding: 5px 0; break-inside: avoid; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.links a:hover { color: var(--ink); text-decoration: underline; }
.links .muted { font-weight: 400; font-size: 0.8125rem; }
/* An employer's approach: native, cross-platform or both, above its stack. */
.company-tag { margin: 8px 0 16px; }
.tag-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 7px 14px; border-radius: var(--r-chip); background: var(--chip); box-shadow: var(--well); font-size: 0.9375rem; }
.tag-label { font-weight: 800; color: var(--ink); margin-left: 2px; }
.tag-detail { color: var(--ink-2); font-weight: 600; }
.tag-detail::before { content: "·"; margin: 0 6px 0 2px; color: var(--muted); }
.company-tag p { margin: 8px 0 0; }
.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 16px; margin: 12px 0; }
.stack-group { min-width: 0; }
.stack > .stack-group { padding: 18px 20px; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); }
.stack-group .l { font: 700 0.8125rem/1.35 var(--font); letter-spacing: 0.01em; color: var(--muted); margin-bottom: 6px; }
details summary { cursor: pointer; color: var(--muted); font-size: 0.875rem; }
details ul { color: var(--ink-2); font-size: 0.875rem; }

/* Tables (insights, status, company scores): a card with inset hairlines. */
.table-wrap { overflow-x: auto; }
table { width: 100%; max-width: 52rem; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); overflow: hidden; margin: 8px 0 16px; }
th, td { text-align: left; padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: baseline; }
tr:first-child > th, tr:first-child > td { border-top: 0; }
th { font: 700 0.8125rem/1.35 var(--font); letter-spacing: 0.01em; color: var(--muted); white-space: nowrap; background: color-mix(in srgb, var(--chip) 50%, var(--panel)); }
td.n, th.n { text-align: right; white-space: nowrap; }
td a { text-decoration: none; font-weight: 700; }
td a:hover { text-decoration: underline; }
table.pay tr.all td { font-weight: 700; color: var(--ink); }
table.pay td.n strong { font-weight: 800; color: var(--good); }

/* Insights: who is hiring and what roles ask for (src/insights.rs `asks`, pages/portrait.rs). */
.ins table.league, .ins table.matrix, .ins table.together { max-width: none; }
.league td.who .sub { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }
.league td.who .sub.apps { color: var(--muted); }
.league-split { display: grid; grid-template-columns: 2.5rem minmax(6rem, 9rem); align-items: center; gap: 10px; color: var(--ink); }
.league-split .fig { font-weight: 800; text-align: right; }
.league-split .split { margin-top: 0; }
.league td.asks { white-space: normal; min-width: 11rem; }
.league .chip { margin: 2px 4px 2px 0; padding: 2px 8px; font-size: 0.8125rem; }
.ins .split-key { margin: 4px 0 0; }
/* The matrix: a neutral ramp of ink on the card, 2px of card between cells. */
table.matrix { width: auto; }
table.matrix th[scope="row"] { background: none; font: 400 0.9375rem/1.35 var(--font); letter-spacing: 0; color: var(--ink); padding: 9px 14px 9px 16px; }
table.matrix th[scope="row"] a { font-weight: 700; color: var(--ink); text-decoration: none; }
table.matrix .sub { margin-left: 4px; font-size: 0.8125rem; color: var(--muted); }
table.matrix thead th { text-align: center; padding: 10px 6px; vertical-align: bottom; }
table.matrix thead th a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
table.matrix thead th a:hover { color: var(--ink); }
table.matrix td.n { text-align: center; min-width: 3.4rem; padding: 10px 4px; border: 0; border-top: 2px solid var(--panel); border-left: 2px solid var(--panel); font-weight: 700; color: var(--ink); }
table.matrix tr.all th, table.matrix tr.all td { border-bottom: 6px solid var(--panel); }
table.matrix tr.all th { color: var(--ink-2); }
.h0 { background: var(--chip); }
table.matrix td.h0 { color: var(--muted); font-weight: 400; }
.h1 { background: color-mix(in srgb, var(--ink) 9%, var(--panel)); }
.h2 { background: color-mix(in srgb, var(--ink) 20%, var(--panel)); }
.h3 { background: color-mix(in srgb, var(--ink) 34%, var(--panel)); }
.h4 { background: color-mix(in srgb, var(--ink) 60%, var(--panel)); }
table.matrix td.h4 { color: var(--panel); }
.matrix-key .sw, .fw-key .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin: 0 5px 0 10px; }
/* The tools map, on a card: dots in their platform's colour, labels haloed in the card. */
.ins-card.map-wrap { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); padding: 16px 20px 14px; overflow-x: auto; margin: 8px 0 12px; }
.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: 600 12px var(--font); }
.map .hit { fill: transparent; }
.map .dot { fill: var(--muted); stroke: var(--panel); stroke-width: 2; transition: fill 200ms var(--ease); }
.map .dot.ios { fill: var(--ios); }
.map .dot.android { fill: var(--android); }
.map .dot.cross { fill: var(--cross); }
.map .lbl { fill: var(--ink-2); font: 600 12px var(--font); paint-order: stroke; stroke: var(--panel); 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-weight: 600; margin: 4px 0 8px; }
/* Which framework: a card per platform, its roles as one segmented bar. */
.fw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 16px; margin: 8px 0 4px; }
.fw { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); padding: 20px 22px; }
.fw h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.0625rem; }
.fw-bar { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; background: var(--chip); }
.fw-bar > span, .fw-key .sw { display: block; }
.fw-key .sw { display: inline-block; margin: 0; }
.fw .ios { background: var(--ios); }
.fw .android { background: var(--android); }
.fw .cross { background: var(--cross); }
.fw .fw-2 { background: var(--ink-2); }
.fw .fw-3 { background: var(--chip); box-shadow: var(--well); }
.fw .fw-4 { background: var(--muted); }
.fw-key { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; gap: 6px; }
.fw-key li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 3rem; align-items: center; gap: 10px; font-size: 0.9375rem; }
.fw-key .fig { font-weight: 800; text-align: right; }
.fw-key .muted { text-align: right; font-size: 0.8125rem; }
.fw p { margin: 0; }
/* Asked together: each companion a chip with its share here and across all roles. */
.together td.with { white-space: normal; }
.pair { display: inline-flex; align-items: baseline; gap: 6px; margin: 2px 6px 2px 0; padding: 3px 10px; border-radius: var(--r-chip); background: var(--chip); box-shadow: var(--well); color: var(--ink); font-size: 0.875rem; text-decoration: none; }
td a.pair { font-weight: 600; }
td a.pair:hover { text-decoration: none; background: var(--accent-soft); }
.pair .pair-vs { color: var(--muted); font-weight: 400; }
/* Behind the charts: one card, a row per maker. */
.ins-card > ol.charts { list-style: none; margin: 8px 0 8px; padding: 0; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); overflow: hidden; max-width: 52rem; }
.charts li { position: relative; display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 13px 20px; }
.charts li + li::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; border-top: 1px solid var(--line); }
.chart-place { font-weight: 700; color: var(--ink); font-size: 0.9375rem; }
.chart-app { font-weight: 700; color: var(--ink); text-decoration: none; }
.chart-maker { color: var(--ink-2); text-decoration: none; }
.chart-roles { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.chart-roles .fig { font-weight: 800; color: var(--ink); }
.charts a:hover { text-decoration: underline; }
.ins .more { margin: 4px 0 0; }
@media (max-width: 720px) {
  table.league .lg-opt { display: none; }
  .charts li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .charts .chart-place { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--muted); }
}

/* Text pages (methodology): the reading column on a card. */
.prose { max-width: calc(var(--measure) + 64px); padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 32px); background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); }
.prose h1 { margin-bottom: 20px; }
.prose h2 { margin: 44px 0 12px; font-size: 1.5rem; }
.prose a, .prose strong { color: var(--ink); }
.prose strong { font-weight: 700; }
.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 6px; border-radius: 6px; font-size: 0.9375rem; }
.prose pre { background: var(--chip); border-radius: var(--r-ctl); padding: 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { display: block; width: max-content; max-width: 100%; overflow-x: auto; box-shadow: var(--well); font-size: 0.9375rem; }

/* Where to work: a country menu and a remote toggle (Browse, topics, apps). */
.place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 24px; }
.place .select select, .place .select .menu-btn { height: 44px; }
.place-clear { color: var(--muted); font-size: 0.9375rem; font-weight: 600; text-decoration: none; padding: 0 6px; }
.place-clear:hover { color: var(--ink); text-decoration: underline; }

/* Jobs by app: app tiles are small cards; each icon is the store's square, cornered like an app
   icon (22.5% of its side, Mobbin's 20–30%) and edged by an inset hairline. Icons are the
   owner's exception to "no imagery" (docs/design/PORTRAIT.md, Imagery and icons). */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 12px; list-style: none; margin: 16px 0 24px; padding: 0; }
.apps li > a, .apps .card {
  position: relative; display: flex; gap: 14px; align-items: center; height: 100%; padding: 14px 16px; border-radius: var(--r-card);
  background: var(--panel); box-shadow: var(--lift-1); color: var(--ink); text-decoration: none; min-width: 0;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.apps li > a:hover, .apps .card:hover { box-shadow: var(--lift-2); transform: translateY(-1px); }
.apps li > a:active, .apps .card:active { transform: scale(0.985); }
.apps li > a:focus-visible { outline-offset: 2px; }
/* A card is its app's link (the name, stretched over the card) with its maker's link on top. */
.card a.n { display: block; color: inherit; text-decoration: none; }
.card a.n::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card a.n:focus-visible { outline: none; }
.apps .card:has(a.n:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-rows .card:has(a.n:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.card a.maker { position: relative; z-index: 1; color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.card a.maker:hover { color: var(--accent); text-decoration-color: currentColor; }
.apps .w { display: flex; flex-direction: column; min-width: 0; }
.apps .n { font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apps .m { color: var(--ink-2); font-size: 0.875rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apps .rank { color: var(--ink); font-size: 0.8125rem; font-weight: 700; line-height: 1.4; }
.ranks { margin: 10px 0 0; font-size: 0.875rem; }
.ranks-list { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-right: 6px; vertical-align: middle; }
.ranks-list span { padding: 3px 9px; border-radius: var(--r-chip); background: var(--chip); box-shadow: var(--well); color: var(--ink); font-weight: 700; }
.ranks .muted { font-size: 0.8125rem; }
.apps li.more a { background: var(--chip); box-shadow: var(--well); }
.app-icon { flex: none; display: block; width: 52px; height: 52px; border-radius: 22.5%; background: var(--chip); box-shadow: var(--well); object-fit: cover; }
img.app-icon { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.app-icon.none { display: grid; place-items: center; font: 800 1.125rem/1 var(--font-display); color: var(--ink-2); }
.app-icon.lg { width: 104px; height: 104px; font-size: 2.5rem; }
.app-head { display: flex; gap: 22px; align-items: center; margin: 8px 0 28px; }
.app-head h1 { margin: 0 0 4px; }
.app-head .muted { color: var(--ink-2); }
.app-head .muted a { color: var(--ink-2); }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stores .btn { height: 40px; }
.app-search { display: flex; gap: 8px; max-width: 34rem; margin: 20px 0 12px; }
.app-search input { flex: 1; min-width: 0; }
.app-search .btn { height: 44px; }
.chip.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.chip.on .n { color: inherit; }
/* The count, with the order and layout on the right; they wrap under it on a phone. */
.app-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 20px 0 0; }
.app-count { flex: 1 1 18rem; margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.app-view { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-view form { display: contents; }
/* Layout links in the segmented control: the current one raised on the thumb. */
.seg a { display: flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 0.9375rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease); }
.seg a:hover { color: var(--ink); }
.seg a[aria-current] { background: var(--panel); color: var(--ink); box-shadow: var(--lift-1); }
/* Apps as rows: one card, inset hairlines, the whole row a link. */
.app-rows { list-style: none; margin: 16px 0 24px; padding: 0; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); overflow: hidden; }
.app-rows li { position: relative; }
.app-rows li + li::before { content: ""; position: absolute; top: 0; left: 74px; right: 0; border-top: 1px solid var(--line); }
.app-rows .card { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 20px; color: var(--ink); text-decoration: none; }
.app-rows .card:hover { background: var(--chip); }
.app-rows .app-icon { width: 40px; height: 40px; }
.app-rows .app-icon.none { font-size: 0.9375rem; }
.app-rows .w { display: flex; flex-direction: column; min-width: 0; }
.app-rows .n { font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-rows .m, .app-rows .r { color: var(--ink-2); font-size: 0.875rem; line-height: 1.4; }
.app-rows .m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-rows .r { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.app-rows .rank { color: var(--ink); font-weight: 700; }
/* Reporting a wrong or missing app: a card that opens. */
details.report { max-width: 40rem; margin: 32px 0 8px; padding: 16px 20px; border-radius: var(--r-card); background: var(--panel); box-shadow: var(--lift-1); }
/* Right under the apps it reports on: the list's own bottom margin is the gap. */
.apps + details.report { margin-top: 0; }
details.report summary { color: var(--ink); font-weight: 700; font-size: 0.9375rem; }
.report form { display: grid; gap: 14px; margin-top: 14px; }
.report fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.report legend { font: 700 0.8125rem/1.35 var(--font); letter-spacing: 0.01em; color: var(--muted); margin-bottom: 6px; }
.report label { color: var(--ink); font-size: 0.9375rem; }
.report input[type="radio"] { accent-color: var(--accent); margin: 0 6px 0 0; }
.report select, .report .menu-btn { height: 36px; margin-left: 4px; }
.report .note { color: var(--ink-2); }
.report textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 0; border-radius: var(--r-ctl); background: var(--chip); box-shadow: var(--well); color: var(--ink); font: inherit; resize: vertical; }
.report .btn { justify-self: start; }
.report .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice.good { background: color-mix(in srgb, var(--good) 10%, var(--panel)); }

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


/* "Near you": a country suggested from the visitor's time zone (static/near.js). */
.near { margin: 14px 4px 0; color: var(--ink-2); font-size: 0.875rem; }
.near a { color: var(--accent); font-weight: 600; }
.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:not([hidden]) { display: block; margin-top: 2px; }
.near-board button { white-space: nowrap; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.near-board button:hover { text-decoration: underline; }
/* The Resume Workshop (docs/RESUME.md §5.5): its way in is "Tailor my resume" on every role. */
.workshop-card { padding: 6px 28px 26px; max-width: 46rem; }
.workshop-steps { list-style: none; margin: 0; padding: 0; }
.workshop-steps li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.workshop-steps b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 800; }
.workshop-go { padding-top: 22px; }

@media (max-width: 1100px) {
  .board-body { grid-template-columns: minmax(0, 1fr); }
  .summary { display: none; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { aspect-ratio: auto; }
  .mix-rows li { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .mix-fig { grid-column: 2; text-align: left; margin-top: -6px; font-size: 0.875rem; }
  .pay-group li { grid-template-columns: 6rem minmax(0, 1fr); gap: 4px 16px; }
  .pay-fig { grid-column: 2; text-align: left; font-size: 0.875rem; }
  .axis { margin-left: calc(6rem + 16px); width: calc(100% - 6rem - 16px); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .display { max-width: 18ch; }
  .phone { justify-self: stretch; width: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .phone-screen { aspect-ratio: auto; padding: 0; background: none; border-radius: 0; }
  .phone-head { padding: 0 4px; }
  .phone .group { border-radius: var(--r-card); box-shadow: var(--lift-1); }
  .plats { grid-template-columns: minmax(0, 1fr); }
  .how-list { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
  .plats { max-width: 40rem; }
  .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  main { padding-top: 8px; padding-bottom: calc(var(--tab-h) + 56px + env(safe-area-inset-bottom)); }
  .top-in { height: 56px; }
  .top-nav, .top-saved { display: none; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--panel); box-shadow: 0 -1px 0 var(--line), 0 -6px 20px rgba(48, 36, 24, 0.06);
  }
  .tabbar a { position: relative; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8125rem; color: var(--muted); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--badge); }
  .tabbar a:focus-visible { outline-offset: -4px; border-radius: var(--r-ctl); }
  .toast { bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 32px; }
  .display { font-size: clamp(2.25rem, 1.4rem + 4vw, 2.75rem); margin-bottom: 24px; }
  .display .quiet { margin-top: 14px; }
  .find-row .seg { width: 100%; }
  .find-row .btn { width: 100%; }
  .seg span { padding: 0 9px; gap: 5px; font-size: 0.875rem; }
  .seg label { flex: 1 1 auto; }
  /* The shelf scrolls sideways, as a store's shelf does on a phone. */
  .shelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .tile { flex: 0 0 78%; scroll-snap-align: start; aspect-ratio: auto; }
  .mix { padding: 18px; }
  .mix-rows li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mix-fig { grid-column: 1; margin-top: 0; }
  .pay-chart { padding: 4px 18px 16px; }
  .pay-group li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pay-level { display: flex; justify-content: space-between; }
  .pay-fig { grid-column: 1; }
  .axis { margin-left: 0; width: 100%; }
  .account { flex-direction: column; align-items: stretch; padding: 22px 20px; }
  .role { grid-template-columns: 10px minmax(0, 1fr); padding: 14px 16px 14px 14px; }
  .role-side { grid-column: 2; flex-direction: row; justify-content: flex-start; gap: 10px; margin-top: 6px; }
  .role:has(> .row-save) { grid-template-columns: 10px minmax(0, 1fr) auto; padding-right: 12px; }
  .role .row-save { grid-column: 3; grid-row: 1 / span 2; margin: -6px -4px 0 0; }
  .group > li + li .role::before { left: 16px; }
  .board-head .seg { justify-self: stretch; }
  .stack-bar { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .stack-set { flex-wrap: nowrap; flex: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; }
  .filters > * { flex: none; }
  .filters .sort { margin-left: 0; }
  /* The row scrolls sideways, so a menu opens as a sheet at the foot of the screen. */
  .filters .menu-pop { position: fixed; top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; min-width: 0; max-width: none; }
  /* The sheet rises from the bottom edge, full width, with a grabber. */
  .sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-tile) var(--r-tile) 0 0; max-height: 90vh; }
  .sheet-in { max-height: 90vh; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); }
  .grabber { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line); }
  .sheet-close { top: 16px; right: 14px; }
  ul.roles li { grid-template-columns: minmax(0, 1fr); }
  .apps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .app-rows .card { padding: 12px 16px; }
  .app-rows li + li::before { left: 70px; }
  .app-rows .r { grid-column: 2; align-items: flex-start; text-align: left; white-space: normal; }
  .app-icon.lg { width: 80px; height: 80px; }
  .app-head { gap: 16px; }
  ul.roles .r { text-align: left; }
  .description { padding: 22px 20px; }
  th, td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* ---------- the sponsored box (docs/SPONSORED-PLAN.md §3) ----------
   Its own card at the top of the side column, never inside a day's card; on phones, above the
   day cards. */
.board-side { position: sticky; top: 24px; display: grid; gap: 16px; align-content: start; }
.sponsored { padding: 18px 20px; }
.sponsored-label { margin: 0 0 10px; color: var(--muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; }
/* "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 30%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.sponsored-about > summary:hover .sponsored-why, .sponsored-about[open] .sponsored-why { text-decoration-color: currentColor; }
.sponsored-explain { margin: 0 0 12px; max-width: 60ch; color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; }
.sponsored-explain p { margin: 0 0 4px; }
.sponsored-link { display: flex; flex-direction: column; gap: 3px; color: var(--ink); text-decoration: none; border-radius: var(--r-ctl); }
.sponsored-link:hover .sponsored-title { color: var(--accent); }
.sponsored-title { display: flex; align-items: center; gap: 8px; font: 700 1.0625rem/1.3 var(--font-display); overflow-wrap: anywhere; }
.sponsored-meta { color: var(--ink-2); font-size: 0.9375rem; }
.sponsored-pay { color: var(--good); font-size: 0.9375rem; font-weight: 700; }
.sponsored-line { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 1100px) {
  .board-side { position: static; order: -1; }
}

@media (forced-colors: active) {
  .card, .group, .plat, .tile, .summary, .sheet, .alert-dialog, .find, .phone { border: 1px solid CanvasText; }
  .seg input:checked + span, .seg a[aria-current] { outline: 2px solid Highlight; }
  .app-rows { border: 1px solid CanvasText; }
  .split > span, .range .fill, .mix-bar > span, .dot { forced-color-adjust: none; }
}
.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 Resume Workshop's own page. */
.hero-text .lede { color: var(--ink-2); max-width: 36rem; margin: 16px 0 0; font-size: 1.0625rem; }
.workshop-go .btn + .btn { margin-left: 8px; }
/* 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; }
.li .lede { color: var(--ink-2); margin: 16px 0 0; }
.hero.li { grid-template-columns: minmax(0, 1fr); }

/* Insights: tables sorted by their headers, and the map's tooltip (static/insights.js). */
.sort-btn { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.sort-btn:hover { color: var(--ink); }
.sort-arrow::after { content: "↕"; opacity: 0.4; font-size: 0.85em; }
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-left: 2px; vertical-align: middle; }
.map-tip { position: fixed; z-index: 40; max-width: 17rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl, 10px); 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 platforms (pages::role_sections). */
.sect-jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: 0.9375rem; font-weight: 600; }
.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-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }

/* ---------- buying a sponsored box (docs/SPONSORED-PLAN.md §6) ----------
   Cards on the pebble ground; fields are wells; the chosen week is a chip in the badge red. */
.buy { max-width: 64rem; }
.buy-about, .buy-pay-page { max-width: calc(var(--measure) + 64px); }
.buy-crumb { margin: 8px 0 10px; font-size: 0.9375rem; font-weight: 700; }
.buy-crumb a { color: var(--ink-2); text-decoration: none; }
.buy-crumb a:hover { text-decoration: underline; }
.buy h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.buy-lede { color: var(--ink-2); font-size: 1.0625rem; max-width: 56ch; margin: 0 0 24px; }
.buy-lede a { color: var(--ink); font-weight: 700; }
.buy-error { margin: 0 0 20px; padding: 14px 18px; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--ink); font-weight: 600; max-width: 62ch; }
.buy-none { color: var(--ink-2); margin: 8px 0 16px; }
.buy-hint { color: var(--muted); font-size: 0.875rem; margin: 8px 0 0; max-width: 62ch; }
.buy-label { display: block; margin: 0 0 8px; color: var(--ink); font-size: 0.9375rem; font-weight: 700; }
.buy-optional { color: var(--muted); font-weight: 600; }
.buy input[type="search"], .buy input[type="text"] {
  width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-ctl); background: var(--chip);
  box-shadow: var(--well); color: var(--ink); font: 400 1rem var(--font);
}
.buy input::placeholder { color: var(--muted); }
.buy-search { max-width: 36rem; margin: 0 0 20px; }
.buy-search label { display: block; margin: 0 0 8px; font-weight: 700; }
.buy-search-row { display: flex; gap: 10px; }
.buy-employers { list-style: none; margin: 12px 0 0; padding: 6px 0; max-width: 36rem; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); }
.buy-employers li + li a { box-shadow: inset 0 1px 0 var(--line); }
.buy-employers li { padding: 0 20px; }
.buy-employers li + li { margin-top: 0; }
.buy-employers a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; color: var(--ink); text-decoration: none; }
.buy-employers a:hover .buy-employer { color: var(--accent); }
.buy-employer { font-weight: 700; }
.buy-n { color: var(--muted); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.buy-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 20px 24px; align-items: start; }
.buy-form .buy-fields, .buy-form .buy-side { padding: 24px; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); }
.buy-field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.buy-field:last-child { margin-bottom: 0; }
.buy-field .menu-btn, .buy-field select { max-width: 100%; }
.buy-value { margin: 0; color: var(--ink-2); }
.buy-value a { color: var(--ink); font-weight: 700; }
.buy-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 8px; }
.buy-week { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: var(--r-chip); background: var(--chip); box-shadow: var(--well); cursor: pointer; transition: box-shadow 200ms var(--ease); }
.buy-week input { position: absolute; opacity: 0; pointer-events: none; }
.buy-week:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.buy-week:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.buy-week:has(input:checked) .buy-week-day { color: var(--accent); }
.buy-week:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.buy-week-day { color: var(--ink); font-size: 0.9375rem; font-weight: 700; }
.buy-week-room { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.buy-week.full { cursor: default; opacity: 0.5; }
.buy-week.full:hover { box-shadow: var(--well); }
.buy-side { position: sticky; top: 20px; }
.buy-preview .sponsored { box-shadow: var(--well); background: var(--bg); }
.buy-example .sponsored { box-shadow: var(--well); }
.buy .sponsored-link { color: var(--ink); text-decoration: none; }
.buy-example { margin: 24px 0 8px; }
.buy-example figcaption { margin-top: 10px; color: var(--muted); font-size: 0.875rem; }
.buy-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 20px 0 14px; color: var(--ink); font-weight: 700; }
.buy-total .fig { font: 800 1.75rem/1 var(--font-display); }
.buy-total .buy-hint { margin: 0; flex-basis: 100%; font-weight: 400; }
.buy-pay { width: 100%; }
.buy-go { margin: 20px 0 8px; }
.buy-closed { color: var(--ink-2); }
.buy table.buy-facts { max-width: min(40rem, 100%); }
.buy-facts th[scope="row"] { width: 8rem; }
.buy-facts td { color: var(--ink-2); }
.buy-counts, .buy-list, .buy-views, .buy-weeks-table { max-width: min(44rem, 100%); }
.buy-counts tr.all td, .buy-counts tr.all th { font-weight: 700; color: var(--ink); }
.buy-weeks-table tr.full td { color: var(--muted); }
.buy-state { color: var(--ink-2); font-size: 0.875rem; font-weight: 700; }
h1 .buy-state { padding: 4px 10px; border-radius: var(--r-chip); background: var(--chip); box-shadow: var(--well); font-family: var(--font); font-size: 0.875rem; 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: 14px 18px; border-radius: var(--r-ctl); background: var(--chip); box-shadow: var(--well); 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; }
  .buy-form .buy-fields, .buy-form .buy-side { padding: 20px; }
}

/* The weekly email's sign-up (templates/digest_macros.html, src/digest.rs): a card on job and topic
   pages, a line in the footer, and its own page at /digest. Email only. */
.digest { margin: 28px 0 8px; padding: 20px; max-width: 36rem; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--lift-1); }
.digest-h { margin: 0; font: 800 1.0625rem/1.3 var(--font-display); color: var(--ink); }
.digest-what { margin: 4px 0 14px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.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: 44px; padding: 0 14px; border: 0; border-radius: var(--r-ctl); background: var(--chip);
  box-shadow: var(--well); color: var(--ink); font: 400 1rem var(--font);
}
.digest input::placeholder { color: var(--muted); }
.digest button, .digest-act button {
  height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-ctl); background: var(--accent); color: var(--on-accent);
  font: 700 0.9375rem/1 var(--font); cursor: pointer; white-space: nowrap; transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.digest button:hover, .digest-act button:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.digest button:active, .digest-act button:active { transform: scale(0.985); }
.digest .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.digest-foot { margin: 18px 0 0; padding: 0; background: none; box-shadow: none; border-radius: 0; max-width: 26rem; }
.digest-foot .digest-h { font-size: 0.9375rem; }
.digest-page { max-width: var(--measure); }
.digest-page .digest { 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. */
  .digest input[type="email"] { flex: none; }
}

/* 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: 800 1.0625rem/1.3 var(--font-display); 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: 14px; 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(--accent); font-weight: 700; }

/* ---------- the board's job alert (templates/alert_macros.html `cta` and `dialog`, static/job_alert.js) ----------
   The board's one red button, at the end of the count line: it names the alert and what the past
   week brought. It opens a sheet like a role's (rising from the bottom on phones) that shows those
   roles in a well, then asks how often and where. Asked for already (in this browser), it steps
   back to a secondary button. */
.board-count { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.board-count > p { flex: 1 1 18rem; margin: 0; }
.alert-cta {
  flex: none; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-ctl);
  background: var(--accent); color: var(--on-accent); box-shadow: var(--lift-1); font: 700 0.9375rem/1 var(--font);
  cursor: pointer; white-space: nowrap; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.alert-cta:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); box-shadow: var(--lift-2); }
.alert-cta:active { transform: scale(0.985); }
.alert-cta-fig { padding-left: 10px; border-left: 1px solid color-mix(in srgb, var(--on-accent) 35%, transparent); font-weight: 600; font-size: 0.875rem; }
.board-count .alert-cta-fig { color: inherit; font-weight: 600; }
.alert-cta.is-asked { background: var(--panel); color: var(--ink-2); }
.alert-cta.is-asked:hover { color: var(--ink); }
/* Under the day cards: one more card, the search's week and the way to get it. */
.alert-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; padding: 20px 22px; color: var(--ink-2); font-size: 0.9375rem; }
.alert-nudge p { margin: 0; max-width: 30rem; }
.alert-nudge .fig { color: var(--ink); font-weight: 800; }
.alert-nudge[hidden] { display: none; }
button.link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.toast button.link { color: inherit; }

.alert-dialog {
  width: min(32rem, calc(100% - 32px)); max-height: min(88vh, 900px); padding: 28px 32px 32px; border: 0; border-radius: var(--r-tile);
  background: var(--panel); color: var(--ink); box-shadow: var(--lift-2); overflow-y: auto;
}
.alert-dialog::backdrop { background: rgba(20, 16, 12, 0.36); }
.alert-dialog [hidden] { display: none; }
.alert-close {
  position: absolute; top: 18px; right: 18px; height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-ctl);
  background: var(--panel); color: var(--ink); box-shadow: var(--lift-1); font: 700 0.875rem/1 var(--font); cursor: pointer;
}
.alert-close:hover { box-shadow: var(--lift-2); }
.alert-kind { margin: 0 96px 4px 0; color: var(--ink-2); font-weight: 700; font-size: 0.9375rem; }
.alert-dialog h2 { margin: 0 96px 10px 0; font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem); }
.alert-dialog h2:focus { outline: none; }
.alert-proof { margin: 0 0 16px; color: var(--ink-2); font-size: 0.9375rem; }
.alert-proof .fig { color: var(--ink); font-weight: 800; }
.alert-sample { list-style: none; margin: 0 0 20px; padding: 0 16px; border-radius: var(--r-ctl); background: var(--chip); box-shadow: var(--well); font-size: 0.9375rem; }
.alert-sample li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; }
.alert-sample li + li { border-top: 1px solid var(--line); }
.alert-sample-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.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 18px; }
.alert-dialog .alert-often legend { margin-bottom: 8px; color: var(--ink-2); font-weight: 700; font-size: 0.9375rem; }
.alert-dialog .alert-often label {
  position: relative; display: block; margin: 0; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--chip); box-shadow: var(--well);
  color: var(--muted); font-size: 0.8125rem; line-height: 1.4; cursor: pointer; transition: background-color 200ms var(--ease);
}
.alert-dialog .alert-often b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 0.9375rem; }
.alert-dialog .alert-often input { position: absolute; opacity: 0; pointer-events: none; }
.alert-dialog .alert-often label:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.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: 8px; color: var(--ink-2); font-weight: 700; font-size: 0.9375rem; }
.alert-row { display: flex; gap: 8px; }
.alert-row input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-ctl); background: var(--chip); box-shadow: var(--well);
  color: var(--ink); font: 400 1rem/1.2 var(--font);
}
.alert-row input::placeholder { color: var(--muted); }
.alert-row input:focus-visible { outline-offset: 0; }
.alert-row .btn { flex: none; }
.alert-error { margin: 10px 0 0; color: var(--bad); font-size: 0.875rem; font-weight: 600; }
.alert-fine { margin: 14px 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.alert-sent .btn { margin-top: 20px; }
.alert-dialog .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .alert-dialog[open] { animation: rise 280ms var(--ease); }
}
@media (max-width: 720px) {
  .alert-cta { width: 100%; justify-content: center; height: 44px; }
  /* A sheet from the bottom edge, as a role's is, its grabber drawn. */
  .alert-dialog { width: 100%; max-width: none; margin: auto 0 0; padding: 32px 20px calc(28px + env(safe-area-inset-bottom)); border-radius: var(--r-tile) var(--r-tile) 0 0; max-height: 90vh; }
  .alert-dialog::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line); }
  .alert-close { top: 18px; right: 14px; }
  .alert-row { flex-direction: column; }
  .alert-row input, .alert-row .btn { flex: none; width: 100%; justify-content: center; }
  .alert-nudge .btn { width: 100%; justify-content: center; }
}

/* ---------- recent searches ----------
   The clock in the board's search field opens the reader's recent searches (static/search_history.js;
   structure in static/brand.css) on the sheet's surface: each search a pressed well, its settings
   as chips, rising from the bottom on phones. The board behind blurs, by the owner's request
   (2026-11-10); the clock is the one drawn icon besides the mark and app icons, also by request. */
.board-search { position: relative; max-width: 46rem; }
.board-search.has-history input { padding-right: 60px; }
.board-search .sh-button { position: absolute; right: 10px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: var(--r-chip); }
.board-search .sh-clock { width: 18px; height: 18px; }
.history-note { color: var(--ink-2); }
.history-note:not([hidden]) { display: block; margin-top: 2px; }
.sh { width: min(34rem, calc(100vw - 32px)); border-radius: var(--r-tile); background: var(--panel); box-shadow: var(--lift-2); }
.sh::backdrop { background: rgba(20, 16, 12, 0.28); }
.sh-head { padding: 22px 18px 10px 28px; }
.sh-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.sh-close {
  height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-ctl); background: var(--panel); color: var(--ink);
  box-shadow: var(--lift-1); font: 700 0.875rem/1 var(--font);
}
.sh-close:hover { box-shadow: var(--lift-2); }
.sh-clear { color: var(--accent); font-weight: 700; text-decoration: none; }
.sh-clear:hover { color: var(--accent); text-decoration: underline; }
.sh-body { padding: 0 16px; }
.sh-group { padding: 14px 12px 8px; color: var(--ink-2); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; }
.sh-list { padding-bottom: 12px; }
.sh-item { margin-bottom: 8px; border-radius: var(--r-ctl); background: var(--chip); box-shadow: var(--well); }
.sh-use { min-height: 60px; padding: 14px 54px 14px 18px; border-radius: inherit; }
.sh-use:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sh-q { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.005em; }
.sh-any { color: var(--ink-2); }
.sh-chip { padding: 3px 9px; border-radius: var(--r-chip); background: var(--panel); box-shadow: var(--well); color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; line-height: 1.35; }
.sh-when { font-size: 0.8125rem; color: var(--muted); }
.sh-del { right: 12px; width: 32px; height: 32px; margin-top: -16px; border-radius: var(--r-chip); font-size: 1.25rem; }
.sh-del:hover { background: var(--panel); }
.sh-empty { padding: 4px 12px 24px; font-size: 0.9375rem; }
.sh-empty .sh-empty-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; }
.sh-foot { padding: 6px 28px 22px; font-size: 0.875rem; color: var(--ink-2); }
.sh-where a { color: var(--accent); font-weight: 700; }
.sh-keys { display: none; }
@media (prefers-color-scheme: dark) { .sh { box-shadow: 0 0 0 1px var(--line), var(--lift-2); } .sh::backdrop { background: rgba(0, 0, 0, 0.4); } }
@media (prefers-reduced-motion: no-preference) {
  .sh-item { transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
  .sh-item:hover { transform: translateY(-1px); box-shadow: var(--well), var(--lift-1); }
  .sh-item:has(.sh-use:active) { transform: scale(0.985); }
  @media (max-width: 760px) { .sh[open] { animation-duration: 280ms; } }
}
@media (max-width: 760px) { .sh { border-radius: var(--r-tile) var(--r-tile) 0 0; } }

/* The next step's buttons (static/brand.css): Portrait's buttons have no border, so the tint gets
   a 1px edge, and the quiet link sheds the resting lift. */
:root[data-site] .ns-tailor { border-width: 1px; }
:root[data-site] .btn.ns-quiet, :root[data-site] .btn.ns-quiet:hover { box-shadow: none; }

/* ---------- your skills (static/fit.js) ----------
   "Your skills" is a well like the toggles beside it; set, it turns the chosen-stack red. A card
   the reader matches says how many of its skills they have, and their skills' chips are the
   chosen stack's red. The picker is the role sheet's card: chips to pick, the picked ones red,
   the level the same; it rises from the bottom on phones. */
.fit-open {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-ctl);
  background: var(--chip); box-shadow: var(--well); color: var(--ink); font: 600 0.9375rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.fit-open:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.fit-open.set { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.fit-open .fig { font-weight: 800; }
.filters .fit-open { margin-left: auto; }
.filters .fit-open + .sort { margin-left: 0; }
.r-fit { display: block; margin-top: 2px; color: var(--ink-2); font-size: 0.875rem; }
.r-fit .fig { color: var(--accent); font-weight: 800; }
.chip.mine { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }

.fit-dialog {
  width: min(40rem, calc(100% - 32px)); max-height: min(88vh, 860px); padding: 0; border: 0; border-radius: var(--r-tile);
  background: var(--panel); color: var(--ink); box-shadow: var(--lift-2); overflow: hidden;
}
.fit-dialog[open] { display: flex; animation: rise 280ms var(--ease); }
.fit-dialog::backdrop { background: rgba(20, 16, 12, 0.36); }
.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: 28px 32px 0; }
.fit-head h2 { margin: 0; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); }
.fit-count { color: var(--muted); font-weight: 700; font-size: 0.875rem; }
.fit-lede { margin: 6px 32px 16px; color: var(--ink-2); font-size: 0.9375rem; }
.fit-body { overflow-y: auto; padding: 0 32px; }
.fit-group { margin: 0 0 18px; padding: 0; border: 0; }
.fit-group legend { padding: 0 0 8px; font: 700 0.8125rem/1.35 var(--font); letter-spacing: 0.01em; color: var(--muted); }
.fit-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.fit-term, .fit-level {
  padding: 6px 12px; border: 0; border-radius: var(--r-chip); background: var(--chip); box-shadow: var(--well); color: var(--ink-2);
  font: 600 0.875rem/1.35 var(--font); cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.fit-term:hover, .fit-level:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); }
.fit-term[aria-pressed="true"], .fit-level[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.fit-term:disabled { opacity: 0.45; cursor: default; }
.fit-note { margin: 0; padding: 14px 32px 0; color: var(--muted); font-size: 0.875rem; box-shadow: inset 0 1px 0 var(--line); }
.fit-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 32px 28px; }
.fit-actions button {
  height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-ctl); background: var(--panel); color: var(--ink);
  box-shadow: var(--lift-1); font: 700 0.9375rem/1 var(--font); cursor: pointer;
}
.fit-actions .fit-clear { margin-right: auto; background: transparent; box-shadow: none; color: var(--ink-2); padding: 0 6px; }
.fit-actions .fit-save { background: var(--accent); color: var(--on-accent); }
.fit-actions .fit-save:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
@media (prefers-color-scheme: dark) { .fit-dialog { box-shadow: 0 0 0 1px var(--line), var(--lift-2); } .fit-dialog::backdrop { background: rgba(0, 0, 0, 0.4); } }
@media (max-width: 720px) {
  .filters .fit-open { margin-left: 0; }
  .fit-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-tile) var(--r-tile) 0 0; max-height: 90vh; }
  .fit-head, .fit-body, .fit-note { padding-left: 20px; padding-right: 20px; }
  .fit-lede { margin-left: 20px; margin-right: 20px; }
  .fit-actions { padding: 14px 20px calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .fit-dialog[open] { animation: none; } .fit-term, .fit-level, .fit-open { transition: none; } }
@media (forced-colors: active) { .fit-dialog { border: 1px solid CanvasText; } }

/* 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(--panel); color: var(--ink); border: 0; border-radius: var(--r-card); box-shadow: var(--lift-2);
}
.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: 700 0.9375rem/1.3 var(--font); }
.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: 34px; padding: 0 12px; border-radius: var(--r-chip); cursor: pointer;
  border: 0; background: transparent; color: var(--ink-2);
}
.fit-tip-actions .fit-tip-go { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.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; } }
@media (prefers-color-scheme: dark) { .fit-tip { box-shadow: 0 0 0 1px var(--line), var(--lift-2); } }
