/* ═══════════════════════════════════════════════════════════════════════
   connect-jobs.css — Jain Connect jobs board, job page, plans page and the
   member Jobs / Plan pages. Layers on connect.css (.jcx-*); tokens only.
   Prefixes: .cxj- jobs · .cxm- member jobs · .cxp- plans & payment
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Jobs board head ───────────────────────────────────────────── */
.cxj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cxj-head__text { min-width: 0; }
.cxj-head__cta { flex: 0 0 auto; min-height: var(--touch, 44px); }
.cxj-search { margin: 0 0 12px; }
.cxj-search input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.cxj-search .jcx-btn { min-height: 36px; }
.cxj-sectors { margin: 0 0 16px; }
.cxj-sectors .jcx-chip { min-height: 32px; }
.cxj-count { margin: 0; }
.cxj-count a { color: var(--primary); }

/* Filters: visible without JS; the script adds .is-js to collapse them on small screens. */
@media (max-width: 900px) {
  .cxj .jcx-filters { display: block; }
  .cxj.is-js .jcx-filters { display: none; }
  .cxj.is-js .jcx-filters.is-open { display: block; }
  .cxj .jcx-filter-toggle { display: none; }
  .cxj.is-js .jcx-filter-toggle { display: inline-flex; }
}

/* ── Job rows (compact list) ───────────────────────────────────── */
.cxj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cxj-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.cxj-row:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.cxj-row:focus-within { box-shadow: var(--sh-focus); }
.cxj-row__ava { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: 0 0 40px; background: var(--surface-muted); border: 1px solid var(--border); }
.cxj-row__ava--txt { display: inline-grid; place-items: center; font-family: var(--font-heading); color: var(--primary); background: var(--primary-soft); border-color: var(--primary-border); }
.cxj-row__body { min-width: 0; }
.cxj-row__title { font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.3; margin: 0; }
.cxj-row__title a { color: var(--text); text-decoration: none; }
.cxj-row__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* whole row clickable */
.cxj-row__title a:hover { color: var(--primary); }
.cxj-row__title a:focus-visible { outline: none; }
.cxj-row__emp { margin: 2px 0 0; font-size: var(--fs-small); color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cxj-row__facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-xs); color: var(--text); }
.cxj-row__facts i { color: var(--accent); margin-right: 2px; }
.cxj-row__when { margin: 0; display: grid; gap: 2px; text-align: right; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; }

.cxj-empty__more { margin: 12px 0 0 !important; font-size: var(--fs-small); }
.cxj-empty__more a { color: var(--primary); }

.cxj-howto { margin: 20px 0 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-warm); }
.cxj-howto .jcx-h2 { margin: 0 0 8px; }
.cxj-howto__list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--fs-small); line-height: 1.55; }

/* ── One job ───────────────────────────────────────────────────── */
.cxj-job { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; padding-top: 16px; }
.cxj-job__main { min-width: 0; }
.cxj-job__head .jcx-eyebrow a { color: inherit; text-decoration: none; }
.cxj-job__head .jcx-eyebrow a:hover { text-decoration: underline; }
.cxj-job__emp { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: var(--fs-body); }
.cxj-job__emp a { color: var(--primary); font-weight: 600; text-decoration: none; }
.cxj-job__emp a:hover { text-decoration: underline; }
.cxj-facts { margin: 16px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.cxj-desc .jcx-h2 { margin: 0 0 8px; }
.cxj-desc__body { font-size: var(--fs-body); line-height: var(--lh-body, 1.65); max-width: var(--measure, 70ch); overflow-wrap: anywhere; }
.cxj-report { margin: 20px 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.cxj-report a { color: var(--text-muted); }

.cxj-apply { position: sticky; top: calc(var(--header-h) + 12px); }
.cxj-apply .jcx-h2 { margin: 0 0 10px; }
.cxj-apply .jcx-btn { min-height: var(--touch, 44px); }
.cxj-apply .jcx-btn + .jcx-btn { margin-top: 6px; }
.cxj-apply__p { margin: 0 0 12px; font-size: var(--fs-small); color: var(--text); }
.cxj-apply__privacy { margin: 12px 0 0; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; display: flex; gap: 6px; }
.cxj-apply__privacy i { color: var(--success); }
.cxj-opt { font-weight: 400; color: var(--text-muted); }
.cxj-apply .jcx-form { gap: 10px; }

.cxj-closed { margin-top: 16px; }
.cxj-closed .jcx-h1 { font-size: var(--fs-h3); }
.cxj-closed__act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 !important; }

/* ── Member: Jobs ──────────────────────────────────────────────── */
.cxm.jcx { background: transparent; padding-bottom: 0; }
.cxm-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 16px; }
.cxm-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch, 44px); padding: 0 12px; border-bottom: 2px solid transparent;
  margin-bottom: -1px; color: var(--text-muted); text-decoration: none; font-size: var(--fs-small); font-weight: 600; }
.cxm-tabs a:hover { color: var(--primary); }
.cxm-tabs a[aria-current] { color: var(--primary); border-bottom-color: var(--primary); }
.cxm-tabs a b { font-weight: 600; font-size: var(--fs-xs); background: var(--surface-muted); border-radius: var(--r-pill); padding: 1px 7px; color: var(--text-muted); }
.cxm-tabs__out { margin-left: auto; font-weight: 400 !important; }
.cxm-back { margin: 0 0 10px; font-size: var(--fs-small); }
.cxm-back a { color: var(--primary); text-decoration: none; }
.cxm-muted { margin: 0 0 12px; color: var(--text-muted); font-size: var(--fs-small); }

.cxm-limit { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; font-size: var(--fs-small); }
.cxm-limit p { margin: 0; color: var(--text-muted); }
.cxm-limit a:not(.jcx-btn) { color: var(--primary); }

.cxm-form { margin: 0 0 16px; }
.cxm-form .jcx-h2 { margin: 0 0 4px; }
.cxm-err { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--danger); }
.cxm-form [aria-invalid="true"] { border-color: var(--danger) !important; }
.cxm-switch { min-height: 42px; align-items: center; padding: 8px 12px; font-weight: 400 !important; margin: 0 !important; cursor: pointer; }
.cxm-pay { border: 0; padding: 0; margin: 0; min-width: 0; }
.cxm-pay__row { display: grid; grid-template-columns: 1fr auto 1fr minmax(120px, 1fr); gap: 8px; align-items: center; }
.cxm-pay__row input, .cxm-pay__row select { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); font: inherit; color: var(--text); min-width: 0; }
.cxm-pay__row input:focus, .cxm-pay__row select:focus { outline: none; border-color: var(--primary); box-shadow: var(--sh-focus); }
.cxm-close input[type=date] { max-width: 220px; }
.cxm-form__act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cxm-form__act .jcx-btn { min-height: var(--touch, 44px); }

.cxm-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cxm-job { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px; }
.cxm-job__main { min-width: 0; }
.cxm-job__title { font-family: var(--font-heading); font-size: 1.02rem; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cxm-job__title a { color: var(--text); text-decoration: none; }
.cxm-job__title a:hover { color: var(--primary); text-decoration: underline; }
.cxm-job__meta { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.cxm-job__meta a { color: var(--primary); }
.cxm-job__note { margin: 6px 0 0; font-size: var(--fs-xs); color: var(--danger); }
.cxm-job__act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: 0 0 auto; }
.cxm-job__act form { margin: 0; }

.cxm-apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cxm-app { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; background: var(--surface); scroll-margin-top: calc(var(--header-h) + 16px); }
.cxm-app:target { border-color: var(--primary); }
.cxm-app__top { display: flex; gap: 10px; align-items: flex-start; }
.cxm-app__id { flex: 1 1 auto; min-width: 0; }
.cxm-app__id h3 { font-size: var(--fs-body); margin: 0; font-family: var(--font-heading); }
.cxm-app__id h3 a { color: var(--text); text-decoration: none; }
.cxm-app__id h3 a:hover { color: var(--primary); text-decoration: underline; }
.cxm-app__id p { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.cxm-verified { color: var(--success); font-size: .9em; }
.cxm-app__note { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent-soft); background: var(--surface-warm); font-size: var(--fs-small); line-height: 1.55; overflow-wrap: anywhere; }
.cxm-app__bio { margin: 10px 0 0; font-size: var(--fs-small); color: var(--text-muted); }
.cxm-app__act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.cxm-app__act small { color: var(--text-muted); font-size: var(--fs-xs); margin-right: auto; }
.cxm-app__act form { margin: 0; }

/* ── Plans page ────────────────────────────────────────────────── */
.cxp-head .jcx-h1 { max-width: 24ch; }
.cxp-founding { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; padding: 10px 14px; border-radius: var(--r-md);
  background: var(--surface-warm); border: 1px solid var(--accent-soft); font-size: var(--fs-small); }
.cxp-founding i { color: var(--accent); font-size: 1.1rem; }
.cxp-founding span { flex: 1 1 260px; }
.cxp-plans .jcx-plan { position: relative; }
.cxp-tag { margin: 0; align-self: flex-start; font-size: var(--fs-xs); font-weight: 600; color: var(--primary); background: var(--primary-soft);
  border-radius: var(--r-pill); padding: 3px 10px; }
.cxp-blurb { margin: 0; font-size: var(--fs-small); color: var(--text-muted); }
.cxp-plans .jcx-btn, .cxp-choose .jcx-btn { min-height: var(--touch, 44px); }

.cxp-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.cxp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.cxp-table th, .cxp-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.cxp-table thead th { font-family: var(--font-heading); font-weight: 400; font-size: var(--fs-body); background: var(--surface-muted); }
.cxp-table thead th small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-muted); }
.cxp-table th[scope=row], .cxp-table thead th:first-child { text-align: left; font-weight: 400; color: var(--text); }
.cxp-table tbody tr:last-child th, .cxp-table tbody tr:last-child td { border-bottom: 0; }
.cxp-yes { color: var(--success); font-size: 1.1rem; }
.cxp-no { color: var(--text-muted); }

.cxp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.cxp-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
/* Block li + absolutely placed number: a grid li would make every inline
   child (strong, text, code) its own grid cell. */
.cxp-steps li { counter-increment: st; position: relative; padding-left: 38px; min-height: 28px; font-size: var(--fs-small); line-height: 1.55; }
.cxp-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: var(--fs-xs); }
.cxp-steps code, .cxp-mono, .cxp-ref { font-family: var(--font-mono); }
.cxp-honest { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-small); line-height: 1.55; }
.cxp-honest li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.cxp-honest i { color: var(--accent); font-size: 1.05rem; }
.cxp-faq .jcx-h2 { margin: 0 0 4px; }
.cxp-final { margin: 24px 0 0; padding: 20px 16px; text-align: center; border-radius: var(--r-lg); background: var(--surface-warm); border: 1px solid var(--border); }
.cxp-final p { margin: 6px auto 12px; color: var(--text-muted); font-size: var(--fs-small); }

/* ── Member: Plan & payment ────────────────────────────────────── */
.cxp-k { margin: 0 0 2px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--text-muted); }
.cxp-hint { margin: 6px 0 0; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; }
.cxp-fine { margin: 12px 0 0; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; }
.cxp-fine a { color: var(--primary); }

.cxp-current { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cxp-current__name { font-family: var(--font-heading); font-size: var(--fs-h3); margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cxp-current p { margin: 0; font-size: var(--fs-small); }
.cxp-current form { margin: 0; text-align: right; }

.cxp-choose fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cxp-opt { position: relative; cursor: pointer; }
.cxp-opt__top { cursor: pointer; }
.cxp-opt__top::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* whole card selects the plan */
.cxp-opt:has(input:checked) { border-color: var(--primary); box-shadow: var(--sh-md); background: var(--primary-soft); }
.cxp-opt:focus-within { box-shadow: var(--sh-focus); }
.cxp-opt__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cxp-opt input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; }
.cxp-choose__act { margin-top: 12px; }

.cxp-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.cxp-pay .jcx-panel + .jcx-panel { margin-top: 0; }
.cxp-pay .jcx-h2 { margin: 0 0 12px; }
.cxp-ref-row { display: flex; align-items: center; gap: 10px; margin: 0; }
.cxp-ref { font-size: 1.6rem; font-weight: 700; letter-spacing: .06em; color: var(--primary); margin: 0; }
.cxp-upi-btn { margin: 14px 0 0; min-height: 48px; font-size: var(--fs-body); }
.cxp-qr { margin: 14px 0 0; text-align: center; }
.cxp-qr img { width: 200px; height: 200px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; padding: 8px; }
.cxp-qr figcaption { margin: 6px 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.cxp-kv { margin: 14px 0 0; }
.cxp-kv small { color: var(--text-muted); }
.cxp-copyrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cxp-mono { overflow-wrap: anywhere; }
.cxp-bank { margin: 14px 0 0; font-size: var(--fs-small); }
.cxp-bank summary { cursor: pointer; color: var(--primary); }
.cxp-bank p { margin: 8px 0 0; }
.cxp-file { padding: 8px !important; }
.cxp-done { text-align: center; max-width: 560px; margin: 0 auto; }
.cxp-done p { font-size: var(--fs-small); }
.cxp-tick { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--success); color: #fff; font-size: 1.5rem; }
.cxp-done .jcx-h2 { margin: 8px 0; }
.cxp-done__act { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0 0; }
.cxp-orders td, .cxp-orders th { text-align: left; }
.cxp-orders__go { display: inline-block; margin-left: 8px; font-size: var(--fs-xs); color: var(--primary); }

/* Phones pay with the UPI button; computers scan the QR. When both exist,
   show the one that fits the device (pointer is the honest signal). */
@media (pointer: fine) and (hover: hover) {
  .cxp-upi-btn { display: none; }
}
@media (pointer: coarse) {
  .cxp-upi-btn ~ .cxp-qr { display: none; }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cxj-job { grid-template-columns: 1fr; }
  .cxj-apply { position: static; }
  .cxp-two, .cxp-pay { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cxp-compare { display: none; }   /* the plan cards above carry the same rows on phones */
}
@media (max-width: 600px) {
  .cxj-head { flex-direction: column; align-items: stretch; }
  .cxj-head__cta { align-self: flex-start; }
  .cxj-row { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; }
  .cxj-row__when { grid-column: 2; text-align: left; display: flex; gap: 12px; }
  .cxj-sectors .jcx-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .cxj-sectors .jcx-chip { white-space: nowrap; }
  .cxm-job { flex-direction: column; }
  .cxm-job__act { justify-content: flex-start; }
  .cxm-pay__row { grid-template-columns: 1fr auto 1fr; }
  .cxm-pay__row select { grid-column: 1 / -1; }
  .cxm-tabs__out { margin-left: 0; }
  .cxp-current form { text-align: left; }
  .cxp-orders thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cxp-orders, .cxp-orders tbody, .cxp-orders tr, .cxp-orders td { display: block; width: 100%; }
  .cxp-orders tr { padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .cxp-orders td { border: 0; padding: 2px 0; display: flex; gap: 8px; }
  .cxp-orders td::before { content: attr(data-label); flex: 0 0 90px; color: var(--text-muted); font-size: var(--fs-xs); }
}
