/*
  jobs.css: faxo.com/jobs (JobsWebController), on top of faxo.css (colors, buttons, top bar, join bar).
  Phones: one column, a row opens the job's page. Wide screens (1000px+): the list and the open job
  side by side, the page confined to 1180px (the search form and list are ~480-760px of it).
  Versions: v=1 (2026-12-04)
*/

.jb-page { background: var(--bg); }
.jb-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.jb-wrap.narrow { max-width: 760px; }
.jb-page main { padding-bottom: 120px; } /* room above the join bar */

/* ---------- hero and search ---------- */
.jb-hero { padding: 28px 0 8px; }
.jb-hero > h1, .jb-intro, .jb-stats, .jb-search { max-width: 760px; }
.jb-intro { margin: 8px 0 0; font-size: 17px; line-height: 1.45; color: var(--secondary); }
.jb-stats { margin: 10px 0 0; font-size: 14px; color: var(--secondary); }
.jb-stats b { color: var(--label); font-weight: 600; }

.jb-search { margin-top: 20px; display: grid; gap: 10px; grid-template-columns: 1fr; }
.jb-field { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 12px; background: var(--fill); }
.jb-field:focus-within { box-shadow: 0 0 0 3px var(--focus); }
.jb-field svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--secondary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jb-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--label); font: inherit; font-size: 17px; }
.jb-field input::placeholder { color: var(--secondary); }
.jb-field input::-webkit-search-cancel-button { display: none; }
.jb-go { height: 50px; }
.jb-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.jb-filters::-webkit-scrollbar { display: none; }
.jb-filters select {
  flex: none; height: 34px; padding: 0 30px 0 14px; border: 0; border-radius: 17px; background-color: var(--fill); color: var(--label);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%238e8e93' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 7px;
}
.jb-filters select.on { background-color: var(--accent); color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.jb-filters select:focus-visible { outline: 3px solid var(--focus); }

@media (min-width: 700px) {
  .jb-search { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; }
  .jb-go { width: auto; padding: 0 28px; }
  .jb-filters { grid-column: 1 / -1; }
}

/* ---------- role pills (YouTube-style, selected = blue) ---------- */
.jb-pills { margin: 16px -16px 0; padding: 0 16px 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.jb-pills::-webkit-scrollbar { display: none; }
.jb-pill { flex: none; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 9px; background: var(--fill);
  font-size: 14px; font-weight: 600; color: var(--label); text-decoration: none; white-space: nowrap; }
.jb-pill:hover { background: var(--fill-pressed); }
.jb-pill.on { background: var(--accent); color: #fff; }
@media (min-width: 1000px) { .jb-pills { flex-wrap: wrap; margin: 16px 0 0; padding: 0; overflow: visible; } }

/* ---------- Match my resume ---------- */
.jb-match { margin: 22px 0 6px; padding: 18px; border-radius: 18px; max-width: 760px;
  background: linear-gradient(135deg, rgba(0, 122, 255, .10), rgba(88, 86, 214, .10)); }
.jb-match h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.jb-match p { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--secondary); }
.jb-match-actions { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jb-file { width: auto; padding: 0 22px; cursor: pointer; }
.jb-file:focus-within { box-shadow: 0 0 0 3px var(--focus); }
.jb-paste { margin-top: 12px; display: grid; gap: 10px; }
.jb-paste[hidden] { display: none; }
.jb-paste textarea { width: 100%; min-height: 150px; padding: 12px 14px; resize: vertical; border: 0; border-radius: 12px; background: var(--card); color: var(--label); font: inherit; font-size: 15px; line-height: 1.4; }
.jb-paste .fx-btn { width: auto; justify-self: start; padding: 0 22px; }
.jb-match-status { margin: 10px 0 0; font-size: 15px; }
.jb-match-status:empty { display: none; }
.jb-match-status.err { color: var(--red); }
.jb-spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%;
  border: 2px solid var(--tertiary); border-top-color: var(--accent); animation: jb-spin .8s linear infinite; }
@keyframes jb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .jb-spin { animation: none; } }
@media (min-width: 700px) {
  .jb-match { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: center; padding: 20px 22px; }
  .jb-match-actions { margin-top: 0; }
  .jb-paste, .jb-match-status, .jb-me { grid-column: 1 / -1; }
}
.jb-me { margin-top: 14px; }
.jb-me-sum { margin: 0; font-size: 15px; color: var(--label) !important; }
.jb-chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.jb-chip { padding: 4px 10px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 500; }
.jb-chip.title { background: var(--accent); color: #fff; }

/* ---------- list and pane ---------- */
.jb-split { margin-top: 18px; }
.jb-list { max-width: 760px; }
.jb-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0 4px; }
.jb-count { margin: 0; font-size: 15px; font-weight: 600; color: var(--secondary); }
.jb-back-all { font-size: 15px; font-weight: 600; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 6px 0; }
.jb-pane { display: none; }

@media (min-width: 1000px) {
  .jb-split { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .jb-list { max-width: none; }
  .jb-pane.on { display: block; position: sticky; top: 68px; max-height: calc(100vh - 84px); overflow-y: auto; border-radius: 18px;
    background: var(--fill); padding: 26px 28px; overscroll-behavior: contain; }
  .jb-pane .jb-d-faxo { margin-bottom: 0; }
}

.jb-rows { display: flex; flex-direction: column; }
.jb-row { position: relative; display: flex; gap: 14px; padding: 14px 10px; margin: 0 -10px; border-radius: 14px; color: inherit; text-decoration: none; }
/* iOS-style hairline between rows, starting after the logo; hidden around a highlighted row */
.jb-row + .jb-row::before { content: ""; position: absolute; top: 0; left: 68px; right: 10px; height: .5px; background: var(--separator); }
.jb-row:hover { background: var(--fill); }
.jb-row.on { background: rgba(0, 122, 255, .1); }
.jb-row:hover::before, .jb-row:hover + .jb-row::before, .jb-row.on::before, .jb-row.on + .jb-row::before { display: none; }
.jb-tile { flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 700; }
.jb-tile.big { width: 56px; height: 56px; border-radius: 14px; font-size: 24px; }
.jb-row-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jb-row-title { font-size: 17px; font-weight: 600; letter-spacing: -.2px; line-height: 1.3; }
.jb-row-co { font-size: 15px; color: var(--secondary); line-height: 1.3; }
.jb-why { margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--label); }
.jb-why::before { content: "FaxoBot: "; font-weight: 600; color: var(--accent); }
.jb-tags { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.jb-tags.big { margin-top: 14px; gap: 8px; }
.jb-tag { padding: 3px 9px; border-radius: 999px; background: var(--fill); font-size: 13px; font-weight: 500; color: var(--secondary); }
.jb-row:hover .jb-tag, .jb-row.on .jb-tag, .jb-pane .jb-tag { background: var(--card); }
.jb-tags.big .jb-tag { padding: 5px 12px; font-size: 14px; }
.jb-tag.pay { color: #1f8a3b; background: rgba(52, 199, 89, .14) !important; font-weight: 600; }
.jb-tag.new { color: var(--accent); background: rgba(0, 122, 255, .12) !important; font-weight: 600; }
.jb-via { font-size: 12px; color: var(--tertiary); }
@media (prefers-color-scheme: dark) { .jb-tag.pay { color: #30d158; } }

.jb-empty { padding: 40px 12px; text-align: center; max-width: 480px; margin: 0 auto; }
.jb-empty b { font-size: 20px; }
.jb-empty p { color: var(--secondary); }
.jb-empty a, .jb-credits a { color: var(--accent); }
.jb-pager { margin: 18px 0 0; display: flex; justify-content: center; gap: 10px; }
.jb-pager .fx-btn { width: auto; padding: 0 24px; color: var(--label); }
.jb-credits { margin: 26px 0 0; font-size: 12px; line-height: 1.45; color: var(--secondary); }

/* ---------- one job ---------- */
.jb-detail { padding-top: 8px; }
.jb-d-head { padding-bottom: 18px; }
.jb-d-title { margin: 14px 0 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.5px; }
.jb-detail.in-pane .jb-d-title { font-size: 26px; }
.jb-d-title a { color: inherit; text-decoration: none; }
.jb-d-title a:hover { text-decoration: underline; }
.jb-d-co { margin: 6px 0 0; font-size: 18px; font-weight: 600; }
.jb-d-where { margin: 2px 0 0; font-size: 16px; color: var(--secondary); }
.jb-d-actions { margin-top: 20px; }
.jb-d-actions .fx-btn { max-width: 360px; }
.jb-d-via { margin: 10px 0 0; font-size: 14px; color: var(--secondary); }
.jb-d-via a { color: var(--accent); font-weight: 600; }
.jb-d-body { padding-top: 18px; border-top: .5px solid var(--separator); font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.jb-d-body h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.jb-d-body p { margin: 0 0 12px; }
.jb-d-body ul { margin: 0 0 12px; padding-left: 22px; }
.jb-d-body ul + ul { margin-top: -12px; }
.jb-d-body li { margin: 3px 0; }
.jb-d-body a { color: var(--accent); }
.jb-d-faxo { margin: 26px 0; padding: 16px 18px; border-radius: 16px; border: .5px solid var(--separator); font-size: 15px; line-height: 1.4; }
.jb-d-faxo b { display: block; margin-bottom: 2px; font-size: 16px; }
.jb-d-faxo a { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 600; }
.jb-one .jb-detail { padding-top: 24px; }
.jb-back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 17px; text-decoration: none; }
.jb-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jb-more { margin-top: 12px; }
.jb-more h2 { margin: 0 0 6px; }
.jb-more-all { margin-top: 16px; text-align: center; }
.jb-more-all .fx-btn { width: auto; display: inline-flex; padding: 0 24px; color: var(--label); }
