/* Xyncema Roles — a monochrome board. Black is the action colour; the marker yellow is only ever a
   background (a highlight, a saved state, a selected facet), never text on white. */

[data-theme="jobs"] body { background: var(--bg); color: var(--text); font-family: var(--font-body); }
.jb-wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.jb-muted { color: var(--muted); }
.jb-h1, .jb-h2, .jb-h3, .jb-h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.025em; }
.jb-h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); font-weight: 800; line-height: 1; }
.jb-h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); }
.jb-h3 { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.28rem); letter-spacing: -0.015em; }
.jb-h4 { font-size: 0.95rem; letter-spacing: -0.01em; }
.jb-mark { background: linear-gradient(transparent 58%, var(--secondary) 58%, var(--secondary) 92%, transparent 92%); padding: 0 0.08em; }
.jb-eyebrow { font: 700 0.75rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.9rem; }
.jb-lead { font-size: clamp(1rem, 0.97rem + 0.3vw, 1.15rem); line-height: 1.65; color: var(--muted); }

/* ---------- Header ---------- */
.jb-notice { background: var(--secondary); color: var(--on-secondary); font-size: 0.8125rem; line-height: 1.45; padding: 0.55rem 0; font-weight: 500; }
.jb-notice p { margin: 0; }
.jb-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 2px solid var(--text); }
.jb-header__row { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.jb-logo { display: flex; align-items: baseline; gap: 0.4rem; text-decoration: none; color: var(--text); font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; margin-right: auto; letter-spacing: -0.04em; }
.jb-logo i { font-style: normal; background: var(--secondary); padding: 0 0.3rem; border-radius: 4px; }
.jb-logo small { font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; color: var(--muted); letter-spacing: 0; }
.jb-nav { display: flex; gap: 1.35rem; }
.jb-nav a { color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 0.3rem 0.1rem; }
.jb-nav a:hover, .jb-nav a[aria-current="page"] { background: var(--secondary); }
.jb-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; margin-left: 0.3rem; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 0.75rem; font-weight: 700; }
.jb-toggle { display: none; background: none; border: 2px solid var(--text); border-radius: var(--radius); width: 2.75rem; height: 2.75rem; padding: 0.55rem; color: var(--text); cursor: pointer; }
.jb-toggle svg { width: 100%; height: 100%; }
.jb-mobile { display: none; flex-direction: column; padding-bottom: 1rem; }
.jb-mobile a { padding: 0.8rem 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.jb-mobile[data-open] { display: flex; }
@media (max-width: 900px) { .jb-nav, .jb-header .jb-btn { display: none; } .jb-toggle { display: block; } }

/* ---------- Buttons ---------- */
.jb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0 1.25rem; border-radius: var(--radius-btn); border: 2px solid var(--text); background: var(--text); color: var(--bg); font: 700 0.9375rem/1 var(--font-body); text-decoration: none; cursor: pointer; }
.jb-btn:hover { background: var(--secondary); color: var(--text); }
.jb-btn--line { background: transparent; color: var(--text); }
.jb-btn--line:hover { background: var(--secondary); }
.jb-btn svg { width: 1.05rem; height: 1.05rem; }
.jb-link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.jb-link:hover { background: var(--secondary); }
.jb-save { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0 0.8rem; border: 2px solid var(--text); border-radius: var(--radius-btn); background: var(--surface); font: 600 0.8125rem/1 var(--font-body); color: var(--text); cursor: pointer; white-space: nowrap; }
.jb-save svg { width: 1rem; height: 1rem; }
.jb-save[aria-pressed="true"] { background: var(--secondary); }
.jb-save[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- Sections ---------- */
.jb-section { padding-block: clamp(3rem, 2rem + 4vw, 5.25rem); border-top: 1px solid var(--border); }
.jb-section--flat { border-top: 0; }
.jb-section--dark { background: var(--surface-2); color: var(--on-surface-2); border-top: 0; }
.jb-section--dark .jb-h2, .jb-section--dark .jb-h3, .jb-section--dark .jb-h4 { color: var(--on-surface-2); }
.jb-section--dark .jb-lead, .jb-section--dark .jb-muted { color: var(--on-surface-2); opacity: 0.8; }
.jb-head { display: grid; gap: 0.85rem; margin-bottom: 2.25rem; max-width: 46rem; }

/* ---------- Hero ---------- */
.jb-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.jb-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.jb-hero h1 { max-width: 13ch; }
.jb-hero__copy { margin: 1.25rem 0 0; line-height: 1.7; color: var(--muted); max-width: 42ch; }
.jb-hero__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--text); }
.jb-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; margin-top: 1.75rem; max-width: 34rem; }
.jb-search .xy-field { margin: 0; }
.jb-search .xy-input { border: 2px solid var(--text); min-height: 3rem; }
.jb-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; font-size: 0.875rem; align-items: center; }
.jb-quick a { color: var(--text); padding: 0.3rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; background: var(--surface); }
.jb-quick a:hover { background: var(--secondary); border-color: var(--text); }
@media (max-width: 860px) { .jb-hero__grid { grid-template-columns: minmax(0, 1fr); } .jb-hero__img { order: -1; } }
@media (max-width: 480px) { .jb-search { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Role rows ---------- */
.jb-rows { display: grid; border-top: 2px solid var(--text); }
.jb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); align-items: start; }
.jb-row__main { display: grid; gap: 0.45rem; min-width: 0; }
.jb-row h3 a { color: var(--text); text-decoration: none; }
.jb-row h3 a:hover { background: var(--secondary); }
.jb-row__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.875rem; color: var(--muted); }
.jb-row__meta b { color: var(--text); font-weight: 600; }
.jb-row__side { display: grid; gap: 0.6rem; justify-items: end; text-align: right; }
.jb-pay { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jb-pay small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; color: var(--muted); letter-spacing: 0; }
.jb-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.jb-chip { font: 600 0.75rem/1 var(--font-body); padding: 0.38rem 0.55rem; border: 1px solid var(--text); border-radius: 4px; }
.jb-dates { font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 640px) {
  .jb-row { grid-template-columns: minmax(0, 1fr); }
  .jb-row__side { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}

/* ---------- Board (collection) ---------- */
.jb-pagehead { padding-block: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem) 1.5rem; }
.jb-board { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.jb-facets { display: grid; gap: 1.5rem; position: sticky; top: 5.5rem; }
.jb-facet { border: 0; margin: 0; padding: 0; }
.jb-facet legend { font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; padding: 0; margin-bottom: 0.7rem; }
.jb-facet label { display: grid; grid-template-columns: auto 1fr auto; gap: 0.55rem; align-items: center; padding: 0.35rem 0.3rem; border-radius: 4px; cursor: pointer; font-size: 0.9375rem; }
.jb-facet label:hover { background: var(--secondary); }
.jb-facet input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: #111111; margin: 0; }
.jb-facet label span:last-child { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.jb-facet label:has(input:disabled) { opacity: 0.45; cursor: default; }
.jb-facet label:has(input:disabled):hover { background: none; }
.jb-facet select { width: 100%; }
.jb-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: end; justify-content: space-between; margin-bottom: 1rem; }
.jb-toolbar .xy-field { margin: 0; min-width: 12rem; flex: 1 1 14rem; max-width: 26rem; }
.jb-toolbar__sort { display: flex; gap: 0.5rem; align-items: center; font-size: 0.875rem; }
.jb-toolbar__sort select { min-height: 2.6rem; }
.jb-status { font-size: 0.9375rem; margin: 0 0 0.25rem; }
.jb-status b { font-family: var(--font-heading); }
.jb-note { font-size: 0.875rem; padding: 0.65rem 0.8rem; background: var(--secondary); border-radius: 4px; margin: 0.5rem 0 0.75rem; line-height: 1.5; }
.jb-empty { padding: 2.5rem 0; border-top: 2px solid var(--text); display: grid; gap: 0.75rem; justify-items: start; }
.jb-filterbtn { display: none; }
@media (max-width: 900px) {
  .jb-board { grid-template-columns: minmax(0, 1fr); }
  .jb-facets { position: static; display: none; border: 2px solid var(--text); border-radius: var(--radius); padding: 1.1rem; background: var(--surface); }
  .jb-facets[data-open] { display: grid; }
  .jb-filterbtn { display: inline-flex; }
}

/* ---------- Shortlist + compare ---------- */
.jb-shortlist { display: grid; gap: 0.5rem; }
.jb-sl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 0.8rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.jb-sl input { width: 1.1rem; height: 1.1rem; accent-color: #111111; }
.jb-sl label { cursor: pointer; }
.jb-sl b { display: block; }
.jb-sl small { color: var(--muted); font-size: 0.8125rem; }
.jb-sl button { background: none; border: 0; font: 600 0.8125rem/1 var(--font-body); color: var(--text); text-decoration: underline; cursor: pointer; padding: 0.4rem; }
.jb-tablewrap { overflow-x: auto; min-width: 0; position: relative; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface); margin-top: 1.25rem; }
.jb-table { width: 100%; border-collapse: collapse; font-size: 0.9125rem; min-width: 36rem; }
.jb-table th, .jb-table td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.jb-table thead th { font-family: var(--font-heading); font-size: 1rem; background: var(--secondary); }
.jb-table tbody th { font: 700 0.75rem/1.4 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); width: 9rem; }
.jb-table tbody tr:last-child th, .jb-table tbody tr:last-child td { border-bottom: 0; }
.jb-table ul { margin: 0; padding-left: 1rem; }

/* ---------- Principles ---------- */
.jb-principles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.jb-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; counter-reset: r; }
.jb-rules > div { counter-increment: r; display: grid; gap: 0.35rem; padding-top: 0.9rem; border-top: 2px solid var(--on-surface-2); }
.jb-rules > div::before { content: counter(r, decimal-leading-zero); font: 700 0.8125rem/1 var(--font-heading); color: var(--primary-on-dark); }
.jb-rules p { margin: 0; line-height: 1.65; font-size: 0.9375rem; opacity: 0.85; }
.jb-principles img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .jb-principles, .jb-rules { grid-template-columns: minmax(0, 1fr); } .jb-principles__media { max-width: 18rem; } }

/* ---------- Employers strip ---------- */
.jb-employers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.6rem; }
.jb-employer { display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); }
.jb-employer:hover { border-color: var(--text); background: var(--secondary); }
.jb-employer b { font-family: var(--font-heading); font-size: 1.02rem; }
.jb-employer span { font-size: 0.8125rem; color: var(--muted); }

/* ---------- Detail ---------- */
.jb-dhead { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.25rem) 1.5rem; border-bottom: 2px solid var(--text); }
.jb-crumb { font-size: 0.875rem; color: var(--muted); margin: 0 0 1rem; }
.jb-crumb a { color: var(--muted); }
.jb-dhead__row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; }
.jb-dhead__row h1 { max-width: 18ch; }
.jb-dhead .jb-chips { margin-top: 1rem; }
.jb-at { margin: 0.75rem 0 0; font-size: 1.05rem; }
.jb-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 4vw, 3.25rem); align-items: start; }
.jb-aside { display: grid; gap: 1rem; position: sticky; top: 5.5rem; }
.jb-panel { border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface); padding: 1.15rem; display: grid; gap: 0.7rem; }
.jb-facts { list-style: none; margin: 0; padding: 0; display: grid; }
.jb-facts li { display: grid; gap: 0.15rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem; line-height: 1.5; }
.jb-facts li:last-child { border-bottom: 0; }
.jb-facts span { font: 700 0.6875rem/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.jb-dimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 1.75rem 0 0; }
.jb-prose p { line-height: 1.75; margin: 0 0 1.05rem; max-width: 40rem; }
.jb-list { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.jb-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; line-height: 1.6; }
.jb-list li::before { content: "■"; font-size: 0.55rem; line-height: 1.6rem; }
.jb-list--nice li::before { content: "□"; }
.jb-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; counter-reset: st; }
.jb-steps li { counter-increment: st; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 0.25rem 1rem; padding: 1rem 0; border-top: 1px solid var(--border); align-items: baseline; }
.jb-steps li:last-child { border-bottom: 1px solid var(--border); }
.jb-steps li::before { content: counter(st); display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 2px solid var(--text); border-radius: 50%; font: 700 0.8125rem/1 var(--font-heading); }
.jb-steps b { font-family: var(--font-heading); font-size: 1.02rem; }
.jb-steps em { font-style: normal; font-size: 0.8125rem; font-weight: 600; background: var(--secondary); padding: 0.2rem 0.45rem; border-radius: 4px; white-space: nowrap; }
.jb-steps p { grid-column: 2 / -1; margin: 0; color: var(--muted); font-size: 0.9125rem; line-height: 1.6; }
@media (max-width: 940px) { .jb-cols { grid-template-columns: minmax(0, 1fr); } .jb-aside { position: static; } }
@media (max-width: 520px) { .jb-steps li { grid-template-columns: 2.4rem minmax(0, 1fr); } .jb-steps em { grid-column: 2; justify-self: start; } }

/* ---------- Apply ---------- */
.jb-apply { border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface); padding: clamp(1.2rem, 3vw, 2rem); }
.jb-q { border: 0; margin: 0 0 1.4rem; padding: 0; }
.jb-q legend { font-weight: 600; line-height: 1.5; padding: 0; margin-bottom: 0.55rem; }
.jb-q .xy-hint { margin: -0.2rem 0 0.55rem; }
.jb-opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.jb-opts label { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.6rem; padding: 0 0.9rem; border: 1px solid var(--text); border-radius: var(--radius-btn); cursor: pointer; font-size: 0.9375rem; background: var(--bg); }
.jb-opts input { position: absolute; opacity: 0; width: 0; height: 0; }
.jb-opts label:has(input:checked) { background: var(--text); color: var(--bg); }
.jb-opts label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.jb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.jb-fields .jb-full { grid-column: 1 / -1; }
.jb-counter { font-size: 0.8125rem; color: var(--muted); text-align: right; margin: 0.3rem 0 0; font-variant-numeric: tabular-nums; }
.jb-counter[data-bad] { color: var(--danger); font-weight: 600; }
.jb-ok { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.35; margin: 0 0 1rem; }
.jb-ok svg { width: 1.3rem; height: 1.3rem; margin-top: 0.1rem; }
.jb-receipt { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; }
.jb-receipt li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; padding: 0.65rem 0; border-top: 1px solid var(--border); font-size: 0.9375rem; line-height: 1.5; }
.jb-receipt li:last-child { border-bottom: 1px solid var(--border); }
.jb-receipt span:first-child { font: 700 0.6875rem/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) { .jb-fields { grid-template-columns: minmax(0, 1fr); } .jb-receipt li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; } }

/* ---------- FAQ ---------- */
.jb-faq details { border-top: 1px solid var(--border); }
.jb-faq details:last-of-type { border-bottom: 1px solid var(--border); }
.jb-faq summary { cursor: pointer; padding: 1.05rem 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; line-height: 1.4; list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.jb-faq summary::-webkit-details-marker { display: none; }
.jb-faq summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.jb-faq details[open] summary::after { content: "–"; }
.jb-faq p { margin: 0 0 1.15rem; color: var(--muted); line-height: 1.7; max-width: 46rem; }

/* ---------- Footer ---------- */
.jb-footer { background: var(--surface-2); color: var(--on-surface-2); padding-block: clamp(2.5rem, 2rem + 3vw, 3.75rem) 2rem; }
.jb-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.jb-footer .jb-logo { color: var(--on-surface-2); }
.jb-footer .jb-logo i { color: var(--on-secondary); }
.jb-footer .jb-logo small { color: var(--on-surface-2); opacity: 0.7; }
.jb-footer p { color: var(--on-surface-2); opacity: 0.8; line-height: 1.7; font-size: 0.9rem; margin: 0.8rem 0 0; }
.jb-footer h3 { font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-on-dark); margin: 0 0 0.9rem; }
.jb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.jb-footer a { color: var(--on-surface-2); text-decoration: none; font-size: 0.9rem; }
.jb-footer a:hover { text-decoration: underline; }
.jb-footer__note { margin-top: 2.25rem; padding-top: 1.4rem; border-top: 1px solid rgba(250, 250, 247, 0.2); font-size: 0.8125rem; line-height: 1.7; opacity: 0.75; }
.jb-footer .xy-attribution { opacity: 0.75; }
.jb-footer .xy-attribution a { text-decoration: underline; }
@media (max-width: 820px) { .jb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .jb-footer__grid { grid-template-columns: minmax(0, 1fr); } }
