/* Public job board + candidate pages (templates/recruitment/public/*).
   Built on the site's tokens from pillar.html (--ma-red, --ma-ink ...). */
.rj { --red:#e11d48; --red-dk:#be123c; --red-lt:#fff1f2; --ink:#0f172a; --slate:#334155; --muted:#64748b;
      --line:rgba(15,23,42,.1); --soft:#f8fafc; --green:#16a34a; --green-lt:#f0fdf4; --blue:#2563eb; --blue-lt:#eff6ff;
      --violet:#7c3aed; --violet-lt:#f5f3ff; --amber:#d97706; --amber-lt:#fffbeb;
      background:#fff; color:var(--ink); min-height:70vh; }
.rj a { color:inherit; }
.rj-wrap { max-width:1160px; margin:0 auto; padding:0 20px; }

/* ---- account strip ---- */
.rj-account { background:#0b1224; color:#cbd5e1; font-size:.8rem; }
.rj-account .rj-wrap { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:42px; flex-wrap:wrap; }
.rj-account a { color:#e2e8f0; text-decoration:none; font-weight:600; margin-left:16px; }
.rj-account a:hover { color:#fff; }
.rj-account form { display:inline; margin:0; }
.rj-account button { background:none; border:0; padding:0; margin-left:16px; color:#fda4af; font-weight:700; cursor:pointer; font-size:.8rem; }

/* ---- flash messages ---- */
.rj-flash { margin:18px auto 0; max-width:1160px; padding:0 20px; }
.rj-flash div { padding:12px 16px; border-radius:12px; font-size:.88rem; font-weight:600; margin-bottom:8px; background:var(--blue-lt); color:#1e40af; }
.rj-flash .success { background:var(--green-lt); color:#166534; }
.rj-flash .error { background:var(--red-lt); color:#9f1239; }

/* ---- hero ---- */
.rj-hero { background:radial-gradient(900px 400px at 85% -20%,rgba(225,29,72,.35),transparent 60%),radial-gradient(700px 400px at 0% 120%,rgba(99,102,241,.35),transparent 60%),#0f172a;
           color:#fff; padding:56px 0 64px; }
.rj-kicker { display:inline-flex; gap:8px; align-items:center; padding:7px 14px; border-radius:99px; background:rgba(255,255,255,.1);
             font-size:.74rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#fecdd3; }
.rj-hero h1 { font-size:clamp(1.9rem,4vw,2.9rem); font-weight:800; letter-spacing:-.02em; margin:16px 0 10px; line-height:1.15; }
.rj-hero p { color:#cbd5e1; max-width:640px; font-size:1.02rem; margin:0 0 26px; }
.rj-search { display:grid; grid-template-columns:2fr 1.2fr auto; gap:10px; background:#fff; padding:10px; border-radius:18px;
             box-shadow:0 24px 60px -20px rgba(0,0,0,.5); max-width:860px; }
.rj-search input, .rj-search select { border:0; background:var(--soft); border-radius:12px; padding:13px 16px; font-size:.95rem; color:var(--ink); width:100%; min-width:0; }
.rj-search input:focus, .rj-search select:focus { outline:2px solid var(--red); }
.rj-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:12px; padding:13px 22px; font-weight:800; font-size:.92rem;
          background:var(--red); color:#fff !important; text-decoration:none; cursor:pointer; transition:transform .15s,background .15s,box-shadow .15s; }
.rj-btn:hover { background:var(--red-dk); transform:translateY(-1px); box-shadow:0 10px 24px -10px rgba(225,29,72,.7); }
.rj-btn-ghost { background:#fff; color:var(--ink) !important; border:1px solid var(--line); }
.rj-btn-ghost:hover { background:var(--soft); box-shadow:none; }
.rj-btn-dark { background:var(--ink); }
.rj-btn-dark:hover { background:#1e293b; }
.rj-btn-sm { padding:9px 15px; font-size:.82rem; border-radius:10px; }
.rj-btn-block { width:100%; }
.rj-btn[disabled], .rj-btn.is-disabled { opacity:.55; pointer-events:none; }
@media (max-width:760px) { .rj-search { grid-template-columns:1fr; } }

/* ---- filters + results ---- */
.rj-filters { display:flex; gap:10px; flex-wrap:wrap; padding:22px 0 6px; align-items:center; }
.rj-filters select { border:1px solid var(--line); border-radius:10px; padding:9px 12px; font-size:.86rem; background:#fff; color:var(--slate); max-width:100%; }
.rj-filters .rj-reset { font-size:.84rem; font-weight:700; color:var(--red); text-decoration:none; margin-left:4px; }
.rj-results-head { display:flex; justify-content:space-between; align-items:baseline; padding:14px 0 6px; flex-wrap:wrap; gap:8px; }
.rj-results-head h2 { font-size:1.15rem; font-weight:800; margin:0; }
.rj-results-head span { color:var(--muted); font-size:.88rem; }
.rj-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:10px 0 30px; }
@media (max-width:860px) { .rj-grid { grid-template-columns:1fr; } }
.rj-card { display:flex; flex-direction:column; gap:12px; background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px; text-decoration:none !important;
           color:var(--ink) !important; transition:transform .18s, box-shadow .18s, border-color .18s; position:relative; }
.rj-card:hover { transform:translateY(-3px); box-shadow:0 18px 40px -22px rgba(15,23,42,.35); border-color:rgba(225,29,72,.35); }
.rj-card-top { display:flex; gap:14px; align-items:flex-start; }
.rj-logo { width:52px; height:52px; border-radius:14px; flex:0 0 52px; background:linear-gradient(135deg,var(--red),#fb7185); color:#fff; display:grid; place-items:center;
           font-weight:800; font-size:1.25rem; overflow:hidden; }
.rj-logo img { width:100%; height:100%; object-fit:contain; background:#fff; }
.rj-card h3 { font-size:1.06rem; font-weight:800; margin:0 0 2px; line-height:1.3; }
.rj-company { color:var(--muted); font-size:.86rem; font-weight:600; }
.rj-new { position:absolute; top:16px; right:16px; background:var(--green-lt); color:var(--green); font-size:.66rem; font-weight:800; letter-spacing:.06em; padding:4px 9px; border-radius:99px; text-transform:uppercase; }
.rj-chips { display:flex; flex-wrap:wrap; gap:8px; }
.rj-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border-radius:99px; font-size:.76rem; font-weight:700; background:var(--soft); color:var(--slate); }
.rj-chip.type { background:var(--blue-lt); color:var(--blue); }
.rj-chip.exp { background:var(--violet-lt); color:var(--violet); }
.rj-chip.pay { background:var(--green-lt); color:#15803d; }
.rj-card-foot { display:flex; justify-content:space-between; color:var(--muted); font-size:.78rem; font-weight:600; margin-top:auto; gap:8px; flex-wrap:wrap; }
.rj-card-foot .urgent { color:var(--amber); }
.rj-empty { text-align:center; padding:60px 20px; color:var(--muted); }
.rj-empty i { font-size:2.2rem; color:#cbd5e1; margin-bottom:12px; }
.rj-pager { display:flex; gap:8px; justify-content:center; padding:0 0 50px; flex-wrap:wrap; }
.rj-pager a, .rj-pager span { padding:9px 15px; border-radius:10px; border:1px solid var(--line); font-weight:700; font-size:.86rem; text-decoration:none; color:var(--slate); }
.rj-pager .current { background:var(--ink); color:#fff; border-color:var(--ink); }
.rj-companies { display:flex; gap:10px; flex-wrap:wrap; padding:6px 0 16px; }
.rj-companies a { display:inline-flex; align-items:center; gap:8px; padding:7px 13px 7px 8px; border:1px solid var(--line); border-radius:99px; text-decoration:none; font-size:.82rem; font-weight:700; color:var(--slate); }
.rj-companies a:hover { border-color:var(--red); color:var(--red); }
.rj-companies .rj-logo { width:26px; height:26px; flex-basis:26px; border-radius:8px; font-size:.72rem; }

/* ---- job detail ---- */
.rj-detail { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:28px; padding:34px 0 60px; align-items:start; }
@media (max-width:960px) { .rj-detail { grid-template-columns:1fr; } }
.rj-back { display:inline-flex; gap:8px; align-items:center; color:var(--muted); font-weight:700; font-size:.86rem; text-decoration:none; margin-bottom:14px; }
.rj-head { display:flex; gap:18px; align-items:center; margin-bottom:22px; }
.rj-head .rj-logo { width:68px; height:68px; flex-basis:68px; font-size:1.6rem; border-radius:18px; }
.rj-head h1 { font-size:clamp(1.5rem,3vw,2.1rem); font-weight:800; letter-spacing:-.02em; margin:0 0 4px; line-height:1.2; }
.rj-section { background:#fff; border:1px solid var(--line); border-radius:18px; padding:24px; margin-bottom:16px; }
.rj-section h2 { font-size:1.02rem; font-weight:800; margin:0 0 12px; display:flex; gap:10px; align-items:center; }
.rj-section h2 i { color:var(--red); }
.rj-rich { color:var(--slate); line-height:1.75; font-size:.96rem; overflow-wrap:anywhere; }
.rj-rich ul, .rj-rich ol { padding-left:22px; margin:0 0 12px; }
.rj-rich p { margin:0 0 12px; }
.rj-rich h2, .rj-rich h3, .rj-rich h4 { font-size:1rem; font-weight:800; margin:18px 0 8px; color:var(--ink); }
.rj-rich blockquote { border-left:3px solid var(--red); margin:12px 0; padding:4px 0 4px 14px; color:var(--muted); }
.rj-rich a { color:var(--red); text-decoration:underline; }
.rj-side { position:sticky; top:96px; display:flex; flex-direction:column; gap:14px; }
@media (max-width:960px) { .rj-side { position:static; } }
.rj-panel { background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px; }
.rj-panel h3 { font-size:.78rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); margin:0 0 12px; }
.rj-facts { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.rj-facts li { display:flex; justify-content:space-between; gap:12px; font-size:.9rem; }
.rj-facts li span { color:var(--muted); }
.rj-facts li b { text-align:right; font-weight:700; }
.rj-share { display:flex; gap:8px; flex-wrap:wrap; }
.rj-share a, .rj-share button { display:inline-flex; align-items:center; gap:7px; padding:9px 13px; border-radius:10px; border:1px solid var(--line); background:#fff;
                                font-weight:700; font-size:.8rem; text-decoration:none; color:var(--slate); cursor:pointer; }
.rj-share a:hover, .rj-share button:hover { border-color:var(--red); color:var(--red); }
.rj-note { font-size:.82rem; color:var(--muted); margin:10px 0 0; }
.rj-applied { background:var(--green-lt); border:1px solid #bbf7d0; border-radius:14px; padding:14px 16px; color:#166534; font-weight:700; font-size:.9rem; }

/* ---- forms ---- */
.rj-auth { max-width:460px; margin:0 auto; padding:48px 20px 70px; }
.rj-formcard { background:#fff; border:1px solid var(--line); border-radius:22px; padding:30px; box-shadow:0 24px 60px -34px rgba(15,23,42,.35); }
.rj-formcard h1 { font-size:1.6rem; font-weight:800; margin:0 0 6px; letter-spacing:-.01em; }
.rj-formcard .lead { color:var(--muted); font-size:.92rem; margin:0 0 22px; }
.rj-field { margin-bottom:16px; }
.rj-field label { display:block; font-size:.78rem; font-weight:800; color:var(--slate); margin-bottom:6px; letter-spacing:.02em; }
.rj-field input[type=text], .rj-field input[type=email], .rj-field input[type=password], .rj-field input[type=number], .rj-field input[type=url],
.rj-field input[type=tel], .rj-field select, .rj-field textarea { width:100%; border:1px solid #cbd5e1; border-radius:12px; padding:12px 14px; font-size:.95rem; background:#fff; color:var(--ink); }
.rj-field textarea { min-height:110px; resize:vertical; }
.rj-field input:focus, .rj-field select:focus, .rj-field textarea:focus { outline:2px solid rgba(225,29,72,.35); border-color:var(--red); }
.rj-field .err { color:#be123c; font-size:.8rem; font-weight:600; margin-top:5px; }
.rj-field .hint { color:var(--muted); font-size:.78rem; margin-top:5px; }
.rj-alert { background:var(--red-lt); color:#9f1239; border-radius:12px; padding:12px 14px; font-size:.88rem; font-weight:600; margin-bottom:16px; }
.rj-switch { text-align:center; font-size:.88rem; color:var(--muted); margin-top:18px; }
.rj-switch a { color:var(--red); font-weight:800; text-decoration:none; }
.rj-code { letter-spacing:.55em; text-align:center; font-size:1.7rem !important; font-weight:800; }
.rj-row2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:620px) { .rj-row2 { grid-template-columns:1fr; } }

/* ---- apply ---- */
.rj-apply { max-width:760px; margin:0 auto; padding:34px 20px 70px; }
.rj-job-mini { display:flex; gap:14px; align-items:center; padding:16px 18px; border-radius:16px; background:var(--soft); border:1px solid var(--line); margin-bottom:20px; }
.rj-cv-choice { display:flex; gap:12px; align-items:center; padding:12px 14px; border:1px solid var(--line); border-radius:12px; margin-bottom:8px; cursor:pointer; }
.rj-cv-choice:has(input:checked) { border-color:var(--red); background:var(--red-lt); }
.rj-cv-choice small { color:var(--muted); display:block; }

/* ---- my applications ---- */
.rj-page { max-width:920px; margin:0 auto; padding:34px 20px 70px; }
.rj-page > h1 { font-size:1.7rem; font-weight:800; letter-spacing:-.01em; margin:0 0 4px; }
.rj-page > .lead { color:var(--muted); margin:0 0 24px; }
.rj-app { background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px; margin-bottom:14px; }
.rj-app-top { display:flex; gap:14px; align-items:flex-start; }
.rj-status { margin-left:auto; padding:6px 13px; border-radius:99px; font-size:.76rem; font-weight:800; white-space:nowrap; background:var(--blue-lt); color:var(--blue); }
.rj-status.shortlisted { background:var(--violet-lt); color:var(--violet); }
.rj-status.interview { background:var(--amber-lt); color:var(--amber); }
.rj-status.offered, .rj-status.hired { background:var(--green-lt); color:#15803d; }
.rj-status.rejected { background:var(--red-lt); color:#be123c; }
.rj-steps { display:flex; gap:0; margin:16px 0 4px; }
.rj-steps div { flex:1; text-align:center; font-size:.7rem; font-weight:700; color:#94a3b8; position:relative; padding-top:18px; }
.rj-steps div::before { content:''; position:absolute; top:5px; left:0; right:0; height:3px; background:#e2e8f0; }
.rj-steps div::after { content:''; position:absolute; top:0; left:50%; width:13px; height:13px; margin-left:-6px; border-radius:50%; background:#e2e8f0; }
.rj-steps div.on { color:var(--ink); }
.rj-steps div.on::before, .rj-steps div.on::after { background:var(--green); }
.rj-steps.rejected div.on::before, .rj-steps.rejected div.on::after { background:#dc2626; }
.rj-interview { margin-top:14px; padding:14px 16px; border-radius:14px; background:var(--amber-lt); border:1px solid #fde68a; font-size:.88rem; }
.rj-interview b { display:block; margin-bottom:4px; }

/* ---- profile ---- */
.rj-repeat { border:1px dashed #cbd5e1; border-radius:14px; padding:14px; margin-bottom:10px; position:relative; }
.rj-remove { position:absolute; top:8px; right:10px; background:none; border:0; color:#be123c; font-weight:800; cursor:pointer; font-size:.8rem; }
.rj-cv-row { display:flex; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.rj-cv-row:last-child { border-bottom:0; }
.rj-cv-row form { display:inline; margin:0; }
.rj-photo { width:84px; height:84px; border-radius:50%; object-fit:cover; background:var(--soft); border:2px solid #fff; box-shadow:0 0 0 1px var(--line); }
.rj-linkbtn { background:none; border:0; color:var(--red); font-weight:800; cursor:pointer; padding:0; font-size:.84rem; }
.rj-linkbtn.danger { color:#be123c; }

/* ---- home page teaser blocks ---- */
.rj-closed { max-width:560px; margin:0 auto; text-align:center; padding:70px 20px; }
.rj-closed i { font-size:2.6rem; color:#cbd5e1; margin-bottom:14px; }
