/* Resume parser for employers (/jobs/resume-parser/). The layout is post_a_job.css (pj-*, loaded first); this file adds the
   POST buttons, the "what we read" grid, the privacy band and the plan cards. Jobs theme tokens (theme.css --t-*). */

/* the Start free / Log in buttons are small POST forms, so they are <button>s, not links */
.rp-go { display: inline; margin: 0; }
.pj-cta > .rp-go { display: inline-flex; }
body.jb-page button.pj-btn { border: 0; cursor: pointer; }
body.jb-page button.pj-btn-primary { background: var(--t-brand); color: #fff; }
body.jb-page button.pj-btn-primary:hover { background: var(--t-brand-hover); color: #fff; }
body.jb-page button.pj-btn-white { background: #fff; color: var(--t-brand-text); }
body.jb-page button.pj-btn-white:hover { background: var(--t-brand-tint); color: var(--t-brand-text); }
.rp-linkbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--t-brand-text); text-decoration: underline; cursor: pointer; }
.rp-linkbtn:hover { color: var(--t-brand-hover); }
.rp-linkbtn:focus-visible { outline: 2px solid var(--t-brand); outline-offset: 2px; }
.pj-band .rp-linkbtn, body.jb-page .pj-band .rp-band-jobs a { color: #fff; text-decoration: underline; }
.pj-band .rp-linkbtn:focus-visible { outline-color: #fff; }
.rp-band-login { margin: 14px 0 0; font-size: 15px; }
.pj-band .rp-band-jobs { margin: 18px 0 0; font-size: 15px; font-weight: 700; }

.rp-not-db { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; padding: 10px 14px; max-width: 560px; border-radius: 10px;
  background: var(--t-surface-2); font-size: 14px; line-height: 1.5; color: var(--t-ink-2); }
.rp-not-db i { margin-top: 3px; color: var(--t-brand-text); }

.rp-h-next { margin-top: 40px; }
.rp-grid { list-style: none; display: grid; gap: 16px; margin: 22px 0 0; padding: 0; }
.rp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-grid li { padding: 18px 20px; border: 1px solid var(--t-line); border-radius: var(--t-r); background: var(--t-surface); }
.rp-grid h3 { margin: 0; font: 700 16.5px/1.3 var(--t-body); }
.rp-grid h3 i { margin-right: 6px; color: var(--t-brand-text); }
.rp-grid p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--t-ink-2); }
.rp-private .rp-grid li { background: var(--t-surface-2); border-color: transparent; }

/* ───────── "What is a resume parser?" answer + comparison table ───────── */
.rp-answer { color: var(--t-ink); font-size: 17px; }
.rp-table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--t-line); border-radius: var(--t-r); }
.rp-compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.rp-compare caption { padding: 12px 16px 0; text-align: left; font-size: 13px; color: var(--t-muted); caption-side: top; }
.rp-compare th, .rp-compare td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--t-line); }
.rp-compare thead th { border-top: 0; font-weight: 700; color: var(--t-ink); }
.rp-compare thead th:last-child, .rp-compare td:last-child { background: var(--t-brand-tint); color: var(--t-ink); }
.rp-compare tbody th { font-weight: 600; color: var(--t-ink); width: 24%; }
.rp-compare td { color: var(--t-ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ───────── plan cards ───────── */
.rp-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; align-items: stretch; }
.rp-plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border: 1px solid var(--t-line);
  border-radius: var(--t-r-lg); background: var(--t-surface); }
.rp-plan.is-feature { border: 2px solid var(--t-brand); }
.rp-badge { position: absolute; top: -12px; left: 20px; padding: 3px 12px; border-radius: 999px; background: var(--t-brand); color: #fff; font-size: 12.5px; font-weight: 700; }
.rp-plan-head { display: flex; gap: 12px; align-items: center; }
.rp-plan-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--t-brand-tint); color: var(--t-brand-text); font-size: 17px; }
.rp-plan-free .rp-plan-ic { background: var(--t-good-tint); color: var(--t-good); }
.rp-plan h3 { margin: 0; font: 700 18px/1.25 var(--t-display); }
.rp-tagline { margin: 2px 0 0; font-size: 13.5px; color: var(--t-ink-2); }
.rp-price { display: flex; align-items: baseline; gap: 4px; min-height: 42px; }
.rp-price strong { font: 700 32px/1 var(--t-display); letter-spacing: -.01em; }
.rp-price .rp-word { font-size: 22px; }
.rp-cur { font-size: 20px; font-weight: 700; }
.rp-per { margin-left: 4px; font-size: 14px; color: var(--t-ink-2); }
.rp-note { margin: 0; min-height: 44px; font-size: 13.5px; line-height: 1.5; color: var(--t-ink-2); }
.rp-incl { display: block; font-weight: 600; color: var(--t-ink); }
.rp-plan .rp-go, .rp-plan .pj-btn { width: 100%; }
.rp-plan .rp-go .pj-btn { width: 100%; }
.rp-plan .pj-btn { padding: 0 14px; font-size: 15px; }
.rp-call-line { margin: -4px 0 0; font-size: 13.5px; text-align: center; color: var(--t-ink-2); }
.rp-call-line a { font-weight: 700; }
body.jb-page a.rp-btn-line { border: 1px solid var(--t-brand); background: #fff; color: var(--t-brand-text); gap: 8px; }
body.jb-page a.rp-btn-line:hover { background: var(--t-brand-tint); color: var(--t-brand-text); }
.rp-features { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--t-line); display: grid; gap: 8px; }
.rp-features li { display: flex; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--t-ink-2); }
.rp-features i { margin-top: 3px; color: var(--t-good); }
.rp-features .rp-feature-main { font-weight: 700; color: var(--t-ink); }
.rp-features .rp-feature-main i { color: var(--t-brand-text); }

@media (max-width: 1100px) {
  .rp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .pj-cta > .rp-go { width: 100%; }
  .rp-cta-login { width: 100%; text-align: center; }
}
@media (max-width: 600px) {
  .rp-plans, .rp-grid-3 { grid-template-columns: minmax(0, 1fr); }
  /* the comparison table as one small card per row, so the CoreHRx column is never scrolled out of sight */
  .rp-compare { min-width: 0; }
  .rp-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .rp-compare tr, .rp-compare th, .rp-compare td { display: block; width: auto; }
  .rp-compare tbody tr { border-top: 1px solid var(--t-line); padding: 6px 0; }
  .rp-compare tbody th, .rp-compare td { border-top: 0; padding: 6px 16px; }
  .rp-compare tbody th { width: auto; }
  .rp-compare td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--t-ink); }
  .rp-compare td:last-child { margin: 0 8px 4px; border-radius: 8px; }
}
