/* jobmcp — see DESIGN.md: clinical white, charcoal type, Signal Blue as border/text only, Inter at weight 350 */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/Inter.woff2") format("woff2");
  font-weight: 300 500;
  font-display: swap;
}

:root {
  --paper: #f2f2f4;
  --surface: #fdfdfd;
  --ink: #0f1012;
  --ink-2: #5e5e5e;
  --rule: rgba(0, 0, 0, 0.08);
  --rule-strong: rgba(0, 0, 0, 0.2);
  --wash: rgba(12, 13, 15, 0.05);
  --stamp: #0071e3;
  --band: #0f1012;
  --on-band: #fdfdfd;
  --danger: #a3262a;
  --ok: #1f6b45;

  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --read: var(--ui);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --r-btn: 26px; --r-nav: 10px; --r-card: 54px; --r-pill: 9999px;
  --wrap: 1200px;
  color-scheme: light;
}

:root[data-theme="dark"] {
    --paper: #0f1012;
    --surface: #17181b;
    --ink: #f2f2f4;
    --ink-2: #a0a0a6;
    --rule: rgba(255, 255, 255, 0.1);
    --rule-strong: rgba(255, 255, 255, 0.24);
    --wash: rgba(255, 255, 255, 0.07);
    --stamp: #4da3ff;
    --band: #060607;
    --danger: #ff8d8f;
    --ok: #6fd3a0;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--read);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-feature-settings: "cv01", "cv11", "ss01", "ss02";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: var(--stamp); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--ui); line-height: 1.2; margin: 0; letter-spacing: -0.02em; font-weight: 350; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 var(--s4); max-width: 62ch; }
.lede { font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.ui { font-family: var(--ui); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); font-family: var(--ui); z-index: 100; }
.skip:focus { left: var(--s4); top: var(--s4); }

/* ───────── header / footer ───────── */
.site-head { padding: 34px var(--s5) 0; }
.site-head .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 56px; flex-wrap: wrap; background: var(--surface); border: 0.5px solid var(--rule); border-radius: var(--r-nav); padding: var(--s2) 11px var(--s2) var(--s4); max-width: var(--wrap); }
.wordmark { font-family: var(--ui); font-weight: 400; font-size: 1.125rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; margin-right: auto; display: inline-flex; align-items: center; gap: 6px; }
.wordmark:hover { text-decoration: none; }
.wordmark i { font-style: normal; font-size: 0.75rem; color: var(--stamp); border: 0.5px solid var(--stamp); padding: 2px 10px; border-radius: var(--r-pill); }
.nav { display: flex; gap: var(--s5); font-family: var(--ui); }
.nav a { color: var(--ink); text-decoration: none; padding: var(--s2) 0; border-bottom: 1px solid transparent; }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.nav a[aria-current="page"] { color: var(--stamp); }
.head-actions { display: flex; gap: var(--s3); align-items: center; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; background: transparent; color: var(--ink-2); border: 0.5px solid var(--rule-strong); border-radius: var(--r-pill); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-2); }

.site-foot { background: var(--band); color: var(--on-band); margin-top: var(--s8); padding: 50px 0 var(--s7); font-family: var(--ui); font-size: 0.875rem; }
.site-foot .wrap { display: flex; gap: var(--s5); flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--on-band); }

/* ───────── buttons & forms ───────── */
.btn {
  font-family: var(--ui); font-weight: 400; font-size: 0.875rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 1em 1.5em; border-radius: var(--r-btn); border: 0.5px solid transparent;
  background: var(--wash); color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--rule); text-decoration: none; }
.btn-stamp { background: transparent; border-color: var(--stamp); color: var(--stamp); }
.btn-stamp:hover { background: transparent; border-width: 1.5px; padding: calc(1em - 1px) calc(1.5em - 1px); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-quiet:hover { background: transparent; border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: transparent; border-width: 1.5px; padding: calc(1em - 1px) calc(1.5em - 1px); }
.btn-sm { padding: 0.7em 1.1em; font-size: 0.8125rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--stamp); cursor: pointer; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 0.18em; }

.field { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.field > label, .label { font-family: var(--ui); font-weight: 400; font-size: 0.875rem; color: var(--ink-2); }
.hint { font-family: var(--ui); font-size: 0.8125rem; color: var(--ink-2); margin: 0; max-width: 62ch; }
.input, .select {
  font: inherit; font-family: var(--ui); font-size: 1rem; color: var(--ink);
  font-weight: 350; background: var(--surface); border: 0.5px solid var(--rule-strong); border-radius: var(--r-btn);
  padding: 0.7em 1.1em; width: 100%; min-height: 44px;
}
.input:hover, .select:hover { border-color: var(--ink-2); }
.input:focus-visible, .select:focus-visible { outline: 0; border-color: var(--stamp); box-shadow: 0 0 0 0.5px var(--stamp); }
.input::placeholder { color: var(--ink-2); opacity: 0.75; }
.check { display: flex; gap: var(--s3); align-items: center; font-family: var(--ui); cursor: pointer; min-height: 32px; }
.check input { width: 20px; height: 20px; accent-color: var(--stamp); flex: none; }
.form-error { font-family: var(--ui); color: var(--danger); font-weight: 400; margin: 0 0 var(--s4); min-height: 1.4em; }
.form-ok { font-family: var(--ui); color: var(--ok); font-weight: 400; }

/* chips (list preferences) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); padding: var(--s2); background: var(--surface); border: 0.5px solid var(--rule-strong); border-radius: 20px; min-height: 48px; align-items: center; }
.chips:focus-within { border-color: var(--stamp); }
.chip { font-family: var(--ui); font-size: 0.8125rem; display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 12px; background: transparent; color: var(--stamp); border: 0.5px solid var(--stamp); border-radius: var(--r-pill); }
.chip button { border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 6px; border-radius: var(--r-pill); }
.chip button:hover { color: var(--danger); }
.chips input { flex: 1; min-width: 140px; border: 0; background: transparent; font: inherit; font-family: var(--ui); color: var(--ink); padding: 6px; outline: none; }

/* ───────── home: hero ledger ───────── */
.hero { padding: var(--s8) 0 var(--s7); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.hero h1 { margin-bottom: var(--s5); }
.cta-row { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.hero-note { margin-top: var(--s5); font-family: var(--ui); font-size: 0.8125rem; color: var(--ink-2); }

.ledger { background: var(--surface); border: 0.5px solid var(--rule); border-radius: var(--r-card); overflow: hidden; font-family: var(--ui); position: relative; }
.ledger-head, .ledger-row { display: grid; grid-template-columns: 1fr 1fr; }
.ledger-head > div { padding: var(--s4) var(--s5); font-weight: 400; font-size: 0.75rem; color: var(--ink-2); border-bottom: 0.5px solid var(--rule); }
.ledger-row > div { padding: var(--s4) var(--s5); border-bottom: 0.5px solid var(--rule); font-size: 0.9375rem; line-height: 1.45; min-height: 64px; }
.ledger-row:last-of-type > div { border-bottom: 0; }
/* the margin rule: a double line, as on a bookkeeper's page */
.ledger-head > div + div, .ledger-row > div + div { border-left: 0.5px solid var(--rule); }
.ledger-mine { color: var(--ink-2); }
.ledger-rec b { font-weight: 400; color: var(--stamp); }
.ledger-rec .tag { display: inline-block; margin-left: 6px; font-weight: 400; color: var(--ok); }
.ledger-foot { padding: var(--s4) var(--s5); border-top: 0.5px solid var(--rule); font-size: 0.75rem; color: var(--ink-2); }
.stamp {
  display: inline-block; margin-top: var(--s2); padding: 2px 12px; border: 0.5px solid var(--stamp); color: var(--stamp);
  font-weight: 400; font-size: 0.75rem; letter-spacing: 0.02em; transform: rotate(-4deg); border-radius: var(--r-pill);
}

@keyframes ink-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes stamp-down { 0% { opacity: 0; transform: rotate(-4deg) scale(1.6); } 70% { opacity: 1; transform: rotate(-4deg) scale(0.96); } 100% { opacity: 1; transform: rotate(-4deg) scale(1); } }
.play .ledger-row { opacity: 0; animation: ink-in 0.45s ease-out forwards; }
.play .ledger-row:nth-of-type(1) { animation-delay: 0.25s; }
.play .ledger-row:nth-of-type(2) { animation-delay: 0.95s; }
.play .ledger-row:nth-of-type(3) { animation-delay: 1.7s; }
.play .ledger-row:nth-of-type(4) { animation-delay: 2.6s; }
.play .stamp { opacity: 0; animation: stamp-down 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) 3.3s forwards; }

/* ───────── home: sections ───────── */
.section { padding: 90px 0 0; }
.section > .wrap > h2 { margin-bottom: var(--s5); max-width: 22ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 0.5px solid var(--rule-strong); }
.split > div { padding: var(--s5) var(--s5) var(--s5) 0; }
.split > div + div { padding: var(--s5) 0 var(--s5) var(--s5); border-left: 0.5px solid var(--rule-strong); }
.split h3 { margin-bottom: var(--s4); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: var(--s3) 0; border-top: 0.5px solid var(--rule); }
.plain-list li:first-child { border-top: 0; padding-top: 0; }
.mark { color: var(--stamp); border-bottom: 0.5px solid var(--stamp); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; border-top: 0.5px solid var(--rule-strong); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s4); padding: var(--s5) 0; border-bottom: 0.5px solid var(--rule); }
.steps li::before { content: counter(step); font-family: var(--ui); font-weight: 350; font-size: 1.75rem; line-height: 1; color: var(--stamp); }
.steps h3 { margin-bottom: var(--s2); }
.steps p { margin-bottom: 0; }

.numbers { font-family: var(--ui); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 350; letter-spacing: -0.015em; line-height: 1.3; max-width: 30ch; }
.numbers b { font-weight: 350; color: var(--stamp); }

.faq { border-top: 0.5px solid var(--rule-strong); }
.faq details { border-bottom: 0.5px solid var(--rule); padding: var(--s4) 0; }
.faq summary { font-family: var(--ui); font-weight: 350; font-size: 1.0625rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: var(--s3) 0 0; }

.band { margin: 90px auto 0; max-width: var(--wrap); background: var(--surface); border: 0.5px solid var(--rule); border-radius: var(--r-card); padding: var(--s7) 0; }
.band .wrap { display: flex; gap: var(--s6); justify-content: space-between; align-items: center; flex-wrap: wrap; }
.band h2 { max-width: 20ch; }

/* ───────── page header (inner pages) ───────── */
.page-head { padding: var(--s6) 0 var(--s4); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head p { margin-top: var(--s3); }

/* ───────── jobs ───────── */
.jobs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--s6); align-items: start; }
.jobs-layout.no-detail { grid-template-columns: minmax(0, 1fr); }
.filters { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s3) var(--s4); padding: var(--s5) 0; border-top: 0.5px solid var(--rule-strong); border-bottom: 0.5px solid var(--rule); margin-bottom: var(--s4); }
.filters .field { margin: 0; }
.f-title { grid-column: span 5; } .f-kw { grid-column: span 7; }
.f-loc { grid-column: span 3; } .f-vendor { grid-column: span 3; } .f-age { grid-column: span 2; } .f-level { grid-column: span 2; } .f-country { grid-column: span 2; }
.f-remote { grid-column: span 12; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.results-bar { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--ui); padding: var(--s2) 0 var(--s3); color: var(--ink-2); }
.job-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s4); padding: var(--s4) var(--s3); border-bottom: 0.5px solid var(--rule); cursor: pointer; font-family: var(--ui); }
.job:hover { background: var(--surface); }
.job[aria-current="true"] { background: var(--surface); box-shadow: inset 2px 0 0 var(--stamp); }
.job-title { font-weight: 400; font-size: 1.0625rem; line-height: 1.25; background: none; border: 0; padding: 0; text-align: left; color: var(--ink); cursor: pointer; font-family: inherit; }
.job-title:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.job-meta { grid-column: 1; color: var(--ink-2); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 2px var(--s4); }
.job-meta span + span::before { content: ""; }
.job-side { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: 0.88rem; color: var(--ink-2); display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.snippet { grid-column: 1 / -1; font-family: var(--read); font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; margin: 0; max-width: none; }
.save-btn { border: 0.5px solid var(--rule-strong); background: transparent; color: var(--ink); font-family: var(--ui); font-size: 0.8125rem; font-weight: 400; padding: 4px 14px; border-radius: var(--r-pill); cursor: pointer; min-height: 32px; }
.save-btn:hover { border-color: var(--ink); }
.save-btn[aria-pressed="true"] { background: transparent; color: var(--stamp); border-color: var(--stamp); }
.pill { display: inline-block; font-family: var(--ui); font-size: 0.75rem; font-weight: 350; padding: 2px 10px; border: 0.5px solid currentColor; border-radius: var(--r-pill); }
.pill-ok { color: var(--ok); } .pill-bad { color: var(--danger); } .pill-stamp { color: var(--stamp); } .pill-mute { color: var(--ink-2); }

.detail { position: sticky; top: var(--s4); border: 0.5px solid var(--rule); background: var(--surface); border-radius: var(--r-card); max-height: calc(100vh - 2 * var(--s4)); overflow: auto; }
.detail-inner { padding: var(--s6) var(--s6); }
.detail h2 { font-size: 1.5rem; margin-bottom: var(--s2); }
.detail .job-meta { margin-bottom: var(--s4); }
.detail-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin: var(--s4) 0 var(--s5); }
.desc-img { display: block; max-width: 100%; height: auto; margin: var(--s3) 0; border: 0.5px solid var(--rule); border-radius: 8px; }
.detail-body { white-space: pre-line; font-size: 1rem; line-height: 1.6; max-width: 66ch; }
.detail-note { font-family: var(--ui); font-size: 0.9rem; color: var(--ink-2); border-top: 0.5px solid var(--rule); padding-top: var(--s3); margin-top: var(--s5); }
.detail-close { display: none; }
.empty { padding: var(--s7) 0; font-family: var(--ui); color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-weight: 400; font-size: 1.125rem; margin-bottom: var(--s2); }

/* ───────── auth pages ───────── */
.auth { padding: var(--s8) 0 0; }
.auth .wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.auth h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: var(--s5); }
.auth-aside { border-left: 0.5px solid var(--rule-strong); padding-left: var(--s6); font-family: var(--ui); }
.auth-aside h2 { font-size: 1.125rem; margin-bottom: var(--s3); }
.auth-aside .plain-list li { font-family: var(--read); }

/* ───────── portal ───────── */
.portal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s7); padding-top: var(--s6); align-items: start; }
.side { position: sticky; top: var(--s4); font-family: var(--ui); }
.side-who { font-size: 0.9rem; color: var(--ink-2); margin-bottom: var(--s4); word-break: break-all; }
.side nav { display: grid; border-top: 0.5px solid var(--rule-strong); }
.side nav a { padding: var(--s3) var(--s2); color: var(--ink); text-decoration: none; border-bottom: 0.5px solid var(--rule); display: flex; justify-content: space-between; }
.side nav a:hover { background: var(--surface); }
.side nav a[aria-current="page"] { color: var(--stamp); box-shadow: inset 2px 0 0 var(--stamp); padding-left: var(--s4); background: var(--surface); }
.count { color: var(--ink-2); }
.panel h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: var(--s3); }
.panel > .lede { font-size: 1.1rem; margin-bottom: var(--s6); }
.block { border-top: 0.5px solid var(--rule-strong); padding: var(--s5) 0 var(--s6); }
.block h2 { font-size: 1.1875rem; margin-bottom: var(--s3); }
.token-box { display: grid; gap: var(--s3); padding: var(--s5); background: var(--surface); border: 0.5px solid var(--rule-strong); border-radius: 20px; margin: var(--s4) 0; }
.token-box code { font-size: 0.95rem; word-break: break-all; }
.tabs { display: flex; gap: 0; border-bottom: 0.5px solid var(--rule-strong); flex-wrap: wrap; font-family: var(--ui); margin-top: var(--s4); }
.tabs button { background: none; border: 0; padding: var(--s3) var(--s4); font: inherit; color: var(--ink-2); cursor: pointer; border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--stamp); border-bottom-color: var(--stamp); }
.codeblock { position: relative; margin: 0 0 var(--s4); }
.codeblock pre { margin: 0; padding: var(--s4); padding-right: 88px; background: var(--band); color: var(--on-band); font-size: 0.9rem; line-height: 1.55; overflow-x: auto; border-radius: 0 0 20px 20px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.codeblock .btn { position: absolute; top: var(--s2); right: var(--s2); background: transparent; color: var(--on-band); border-color: rgba(255, 255, 255, 0.4); }
.codeblock .btn:hover { background: rgba(255, 255, 255, 0.12); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 var(--s4); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s5); align-items: start; }
.table { width: 100%; border-collapse: collapse; font-family: var(--ui); }
.table th { text-align: left; font-weight: 400; color: var(--ink-2); font-size: 0.8125rem; padding: var(--s2) var(--s3); border-bottom: 0.5px solid var(--rule-strong); }
.th-sort { all: unset; cursor: pointer; color: inherit; font: inherit; }
.th-sort:hover { color: var(--ink); }
.th-sort:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.table td { padding: var(--s3); border-bottom: 0.5px solid var(--rule); vertical-align: top; font-size: 0.9375rem; }
.table .muted { font-size: 0.9rem; }
.row-actions { display: flex; gap: var(--s2); justify-content: flex-end; }
.match-peek { margin-top: var(--s5); }
.match-peek ul { list-style: none; padding: 0; margin: var(--s3) 0 0; font-family: var(--ui); border-top: 0.5px solid var(--rule); }
.match-peek li { padding: var(--s2) 0; border-bottom: 0.5px solid var(--rule); }

.toast { position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%); background: var(--band); color: var(--on-band); font-family: var(--ui); font-weight: 400; padding: var(--s3) var(--s5); border-radius: var(--r-btn); z-index: 50; max-width: 90vw; }
.toast-bad { background: var(--danger); color: #fff; }

/* privacy page */
.prose h2 { margin: var(--s7) 0 var(--s4); font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s2); max-width: 62ch; }

/* ───────── responsive ───────── */
@media (max-width: 920px) {
  .hero-grid, .auth .wrap { grid-template-columns: 1fr; gap: var(--s6); }
  .hero { padding-top: var(--s6); }
  .auth-aside { border-left: 0; padding-left: 0; border-top: 0.5px solid var(--rule-strong); padding-top: var(--s5); }
  .split { grid-template-columns: 1fr; }
  .split > div + div { padding-left: 0; border-left: 0; border-top: 0.5px solid var(--rule-strong); }
  .split > div { padding-right: 0; }
  .portal { grid-template-columns: 1fr; gap: var(--s5); }
  .side { position: static; }
  .side nav { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-top: 0.5px solid var(--rule-strong); }
  .jobs-layout { grid-template-columns: 1fr; }
  .detail { position: fixed; inset: 0; max-height: none; border-radius: 0; z-index: 40; }
  .detail-close { display: inline-flex; margin-bottom: var(--s4); }
  .detail-x { display: none; }
  .filters > * { grid-column: span 12 !important; }
  .f-loc, .f-vendor, .f-age, .f-level, .f-country { grid-column: span 6 !important; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--s4); }
  .site-head { padding: var(--s4) var(--s4) 0; }
  .site-head .wrap { padding: var(--s2) var(--s3) var(--s2) var(--s4); }
  .nav { gap: var(--s4); }
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-row > div:empty { display: none; }
  .ledger-row > div + div { border-left: 0; }
  .ledger-row > div { min-height: 0; }
  .ledger { border-radius: 28px; }
  .band, .detail-inner { border-radius: 28px; }
  .ledger-mine::before, .ledger-rec::before { display: block; font-family: var(--ui); font-style: normal; font-weight: 400; font-size: 0.75rem; color: var(--ink-2); margin-bottom: 2px; }
  .ledger-mine::before { content: "Stays with you"; }
  .ledger-rec::before { content: "jobmcp records"; }
  .ledger-rec { border-left: 1.8px solid var(--stamp); }
  .nav a[href$="/privacy"] { display: none; }
  .head-actions { gap: var(--s2); }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .job { grid-template-columns: 1fr; }
  .job-side { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table thead { display: none; }
  .table tr { border-bottom: 0.5px solid var(--rule); padding: var(--s3) 0; }
  .table td { border: 0; padding: 2px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .play .ledger-row, .play .stamp { animation: none; opacity: 1; }
}

/* utilities (the CSP forbids inline style attributes) */
.flush { margin: 0; }
.mt3 { margin-top: var(--s3); } .mt4 { margin-top: var(--s4); } .mt5 { margin-top: var(--s5); } .mb6 { margin-bottom: var(--s6); }
.span-all { grid-column: 1 / -1; }
.narrow { max-width: 240px; }
.h-sm { font-size: 1.2rem; }
.snip-note { margin: var(--s4) 0 var(--s2); }
.job-static { cursor: default; }
.job-static:hover { background: transparent; }
.job-link { text-decoration: none; }
.job-link:hover { text-decoration: underline; }
.foot-links { display: flex; gap: var(--s5); }
.probe { margin-top: var(--s4); min-height: 1.5em; }
textarea.input { font-family: var(--ui); resize: vertical; min-height: 120px; }

/* admin: board counters and refresh progress */
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s5); margin: 0 0 var(--s6); padding: var(--s5) 0; border-top: 0.5px solid var(--rule-strong); border-bottom: 0.5px solid var(--rule); font-family: var(--ui); }
.counters > div { display: flex; flex-direction: column; gap: 2px; }
.counters dd { order: 1; margin: 0; font-size: 2.2rem; font-weight: 350; letter-spacing: -0.02em; line-height: 1.1; }  /* number on top, aligned across the row */
.counters dt { order: 2; color: var(--ink-2); font-size: 0.875rem; }
.counters > div:first-child dd { color: var(--stamp); }
.bar { width: 100%; height: 10px; accent-color: var(--stamp); margin: var(--s3) 0 var(--s2); }
@media (max-width: 560px) { .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
