:root {
  /* design B (user 2026-11-11): warm cream + ink, coral action (#d9411f on white = 5.8:1), Assistant */
  --ink: #1d1a17; --muted: #5f574e; --line: #e8ded1; --bg: #fbf7f2; --card: #fff;
  --brand: #d9411f; --brand-ink: #fff; --brand-soft: #f3ebe0; --focus: #1f6f4a;
  --new: #1f6f43; --new-bg: #e5f4ea; --closed: #8a2b2b; --closed-bg: #f9e7e7; --remote-bg: #e8eefb; --remote: #23408e;
  --radius: 20px;
  font-size: 100%;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6;
  font-family: "Assistant", "Segoe UI", Arial, system-ui, sans-serif; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; padding-inline: clamp(16px, 3vw, 48px); }   /* user 2026-11-11: full screen width */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
main { padding-block: 24px 40px; outline: none; }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.brand small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
nav[aria-label="ניווט ראשי"] { display: flex; gap: 4px; flex-wrap: wrap; }
nav[aria-label="ניווט ראשי"] a { padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
nav[aria-label="ניווט ראשי"] a:hover { background: var(--bg); }
nav[aria-label="ניווט ראשי"] a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }

/* hero + search */
.hero h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.25; margin: 8px 0 8px; letter-spacing: -.01em; max-width: 26ch; }
.lead { color: var(--muted); max-width: 68ch; margin: 0 0 16px; }
.searchbar { display: flex; flex-wrap: wrap; gap: 8px; }
.searchbar input { flex: 1; min-width: 0; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid #c9ced6; border-radius: 10px; padding: 10px 12px; background: #fff; min-height: 44px; width: 100%; }
.searchbar input { font-size: 1.05rem; padding: 12px 14px; }
button, .btn, .btn-secondary { font: inherit; font-weight: 700; border-radius: 10px; padding: 10px 18px; min-height: 44px; cursor: pointer; border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-secondary { background: #fff; color: var(--brand); }
.btn-link { background: none; border: none; color: var(--closed); text-decoration: underline; padding: 10px 4px; font-weight: 600; }
button:hover, .btn:hover { filter: brightness(1.08); }

/* tabs */
.tabs { display: flex; gap: 4px; margin: 24px 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.tabs a[aria-current="page"] { color: var(--brand); border-color: var(--brand); }

/* layout */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters details, .save { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters summary { font-weight: 800; cursor: pointer; min-height: 32px; }
.filter-form { display: grid; gap: 6px; margin-top: 8px; }
.filter-form label { font-weight: 600; font-size: .9rem; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; }
.check input { width: 22px; min-height: 22px; height: 22px; }
.check label { margin: 0; }
.reset { font-size: .9rem; text-align: center; padding: 8px; }
.save { margin-top: 16px; display: grid; gap: 6px; }
.save h2 { font-size: 1.05rem; margin: 0; }
.save p { margin: 0 0 4px; font-size: .9rem; }
.save label { font-weight: 600; font-size: .9rem; }

/* results */
.res-count { font-size: 1.05rem; margin: 0 0 12px; }
.cards, .saved-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card:hover { border-color: #c4cad3; }
.card-title { font-size: 1.1rem; margin: 0 0 2px; line-height: 1.35; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { color: var(--brand); text-decoration: underline; }
.card-co { margin: 0; font-weight: 600; }
.card-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .92rem; }
.card-time { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.is-closed .card-title a { color: var(--muted); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--bg); color: var(--ink); }
.tag-new { background: var(--new-bg); color: var(--new); }
.tag-closed { background: var(--closed-bg); color: var(--closed); }
.tag-ok { background: var(--new-bg); color: var(--new); }
.tag-remote { background: var(--remote-bg); color: var(--remote); }
.tag-hybrid { background: #f3ecfb; color: #5b2a86; }
.tag-onsite { background: #f1f2f4; color: #3c4352; }
.empty { background: var(--card); border: 1px dashed #c4cad3; border-radius: var(--radius); padding: 20px; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 20px; }
.pager a { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; }

/* job page */
.crumbs { margin: 0 0 8px; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.job h1 { margin: 0 0 4px; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.25; }
.job-co { font-size: 1.1rem; font-weight: 600; margin: 0; }
.job h2, .more h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.snippet { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 4px; }
.notice { background: var(--closed-bg); color: var(--closed); padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.timeline { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.timeline dt { font-weight: 700; }
.timeline dd { margin: 0; }
.alt { padding-inline-start: 20px; overflow-wrap: anywhere; }
.more { margin-top: 20px; }
.plain { padding-inline-start: 20px; }
.plain li { margin-bottom: 4px; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: start; padding: 12px 14px 4px; font-weight: 700; }
th, td { text-align: start; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg); font-size: .85rem; color: var(--muted); }
td.num { font-variant-numeric: tabular-nums; }
.code { font-family: Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--muted); }
.stats strong { display: block; font-size: 1.6rem; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }

/* employer */
.board { position: relative; display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #eef0f3; border-radius: var(--radius); padding: 10px; min-height: 120px; }
.col h3 { font-size: .95rem; margin: 0 0 8px; display: flex; justify-content: space-between; }
.col ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cand { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .92rem; }
.cand form { display: flex; gap: 6px; margin-top: 6px; }
.cand select { min-height: 36px; padding: 4px 8px; font-size: .85rem; }
.cand button { min-height: 36px; padding: 4px 10px; font-size: .85rem; }
.form-grid { display: grid; gap: 6px; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.form-grid label { font-weight: 600; margin-top: 6px; }
.consent { background: var(--brand-soft); border-radius: 10px; padding: 12px; font-size: .92rem; }

.foot { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-block: 16px 32px; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .filters { display: contents; }            /* phone order: filters, results, then "save this search" */
  .filters details { order: 1; } .results { order: 2; } .save { order: 3; margin-top: 0; }
  .filters details:not([open]) { padding-block: 12px; }
  .board { grid-template-columns: repeat(5, minmax(220px, 1fr)); }
}
@media (max-width: 520px) {
  .searchbar { flex-direction: column; }
  .top-in { gap: 8px; }
  nav[aria-label="ניווט ראשי"] { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  nav[aria-label="ניווט ראשי"] a { padding: 8px 10px; white-space: nowrap; }
  .timeline { grid-template-columns: 1fr; }
  .timeline dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
/* freelance/services: anchor buttons + one-row search bar on desktop */
a.btn, a.btn-secondary { display: inline-flex; align-items: center; text-decoration: none; }
.searchbar > input, .searchbar > select { flex: 1 1 180px; width: auto; }
.searchbar > input[type="search"] { flex: 3 1 280px; }
.searchbar > .check { display: flex; align-items: center; gap: 6px; }
.searchbar > button { flex: none; }
