/* ==========================================================================
   front-job.css — job read pages (job detail, company careers, careers filter)
   Extends the .lp-* system in front-landing.css; also pairs with front-content.css
   (.lp-pagehead, .lp-prose). Load AFTER both. Cache-bust ?v=N on every edit.
   ========================================================================== */

/* Generic card + empty state ------------------------------------------------ */
.lp-card { background: var(--lp-bg); border: 1px solid var(--lp-line); border-radius: var(--lp-r-lg); box-shadow: var(--lp-sh-sm); padding: 22px; }
.lp-card-title { font-family: var(--lp-display); font-size: 1.05rem; line-height: 1.2; color: var(--lp-ink); margin: 0 0 14px; }
.lp-empty { text-align: center; padding: 56px 24px; background: var(--lp-soft); border: 1px solid var(--lp-line); border-radius: var(--lp-r-lg); }
.lp-empty img { max-width: 160px; height: auto; margin: 0 auto 14px; opacity: .9; }
.lp-empty h3 { font-family: var(--lp-display); font-size: 1.25rem; color: var(--lp-ink); margin: 0 0 6px; }
.lp-empty p { color: var(--lp-muted); margin: 0 0 18px; }

/* ==========================================================================
   JOB DETAIL — two-column (content + sticky facts rail)
   ========================================================================== */
.lp-jobview { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 40px; align-items: start; }
.lp-jobview-main { min-width: 0; }
.lp-jobview-rail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 992px) { .lp-jobview { grid-template-columns: 1fr; } .lp-jobview-rail { position: static; } }

.lp-skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.lp-skill { display: inline-flex; padding: 5px 12px; border-radius: var(--lp-pill); background: var(--lp-brand-tint); color: var(--lp-brand-700); font-size: 13px; font-weight: 500; border: 1px solid var(--lp-brand-tint2); }

.lp-prose-h { font-family: var(--lp-display); font-size: 1.25rem; line-height: 1.25; color: var(--lp-ink); margin: 34px 0 12px; }
.lp-prose-h:first-of-type { margin-top: 4px; }

/* Facts list (rail) */
.lp-jobfacts { display: block; }
.lp-fact { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--lp-line); }
.lp-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-fact-k { display: inline-flex; align-items: center; gap: 8px; color: var(--lp-muted); font-size: 13.5px; flex: 0 0 auto; }
.lp-fact-k svg { width: 16px; height: 16px; color: var(--lp-faint); }
.lp-fact-v { color: var(--lp-ink-2); font-weight: 600; font-size: 13.5px; text-align: right; min-width: 0; word-break: break-word; }

/* Apply CTA + share + linkedin */
.lp-apply-cta { display: block; }
.lp-share-label { font-size: 11.5px; font-weight: 600; color: var(--lp-faint); text-transform: uppercase; letter-spacing: .06em; }
.lp-share-row { display: flex; gap: 8px; margin-top: 10px; }
.lp-share-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--lp-soft-2); border: 1px solid var(--lp-line); color: var(--lp-muted); transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.lp-share-btn:hover { background: var(--lp-brand); border-color: var(--lp-brand); color: #fff; transform: translateY(-1px); }
.lp-share-btn svg { width: 17px; height: 17px; }
.lp-linkedin-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 14px; height: 46px; border-radius: var(--lp-r); background: #0a66c2; color: #fff; font-weight: 600; border: 1px solid #0a66c2; transition: filter .15s ease; }
.lp-linkedin-cta:hover { filter: brightness(.93); color: #fff; }
.lp-linkedin-cta svg { width: 18px; height: 18px; }

/* ==========================================================================
   COMPANY CAREERS PAGE
   ========================================================================== */
.lp-company-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--lp-bg); border: 1px solid var(--lp-line); border-radius: var(--lp-r-lg); box-shadow: var(--lp-sh); padding: 22px 26px; margin-top: -46px; position: relative; z-index: 2; }
.lp-company-logo { flex: 0 0 86px; width: 86px; height: 86px; border-radius: var(--lp-r); border: 1px solid var(--lp-line); display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.lp-company-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lp-company-meta { flex: 1 1 240px; min-width: 0; }
.lp-company-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lp-company-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--lp-muted); background: var(--lp-soft-2); border: 1px solid var(--lp-line); padding: 6px 12px; border-radius: var(--lp-pill); }
.lp-company-links a:hover { color: var(--lp-brand-700); border-color: var(--lp-brand-tint2); }
.lp-company-links svg { width: 14px; height: 14px; }
.lp-company-action { margin-left: auto; }
@media (max-width: 640px) { .lp-company-action { margin-left: 0; width: 100%; } .lp-company-action .lp-btn { width: 100%; } }

.lp-company-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 26px 0 8px; }
.lp-company-fact { display: inline-flex; align-items: center; gap: 9px; color: var(--lp-text); font-size: 14.5px; }
.lp-company-fact svg { width: 17px; height: 17px; color: var(--lp-brand); flex: 0 0 auto; }
.lp-company-fact a { color: var(--lp-brand-700); }

.lp-share-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 4px; }

/* ==========================================================================
   JOB LIST (company careers + careers results) — reuses .lp-job base look
   ========================================================================== */
.lp-joblist { display: grid; gap: 12px; }
.lp-joblist .lp-job { align-items: flex-start; }
.lp-joblist-head { font-family: var(--lp-display); font-size: 1.2rem; color: var(--lp-ink); margin: 0 0 16px; }

/* ==========================================================================
   CAREERS FILTER PAGE
   ========================================================================== */
.lp-jobfilter { background: var(--lp-bg); border: 1px solid var(--lp-line); border-radius: var(--lp-r-lg); box-shadow: var(--lp-sh-sm); padding: 20px; margin-bottom: 26px; }
.lp-jobfilter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
@media (max-width: 860px) { .lp-jobfilter-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lp-jobfilter-row { grid-template-columns: 1fr; } }
.lp-field label { display: block; font-size: 12px; font-weight: 600; color: var(--lp-faint); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.lp-select { position: relative; }
.lp-select select { width: 100%; height: 46px; -webkit-appearance: none; -moz-appearance: none; appearance: none; padding: 0 38px 0 14px; border: 1px solid var(--lp-line); border-radius: var(--lp-r); background: var(--lp-bg); font: inherit; font-size: 14.5px; color: var(--lp-ink); outline: none; cursor: pointer; }
.lp-select select:focus { border-color: var(--lp-brand); box-shadow: var(--lp-ring); }
.lp-select svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--lp-faint); pointer-events: none; }
.lp-jobfilter .lp-btn { height: 46px; }

.lp-workexp { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--lp-line); }
.lp-workexp-title { font-size: 12px; font-weight: 600; color: var(--lp-faint); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.lp-checkpills { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-checkpill { position: relative; }
.lp-checkpill input { position: absolute; opacity: 0; width: 0; height: 0; }
.lp-checkpill label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: var(--lp-pill); border: 1px solid var(--lp-line); background: var(--lp-bg); color: var(--lp-muted); font-size: 13.5px; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.lp-checkpill label:hover { border-color: var(--lp-brand-tint2); color: var(--lp-ink-2); }
.lp-checkpill input:checked + label { background: var(--lp-brand-tint); border-color: var(--lp-brand); color: var(--lp-brand-700); font-weight: 600; }
.lp-checkpill input:focus-visible + label { box-shadow: var(--lp-ring); }

/* Bootstrap pagination → modern */
.lp-pagination { margin-top: 30px; display: flex; justify-content: center; }
.lp-pagination .pagination { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.lp-pagination .page-item .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--lp-line); border-radius: var(--lp-r-sm); background: var(--lp-bg); color: var(--lp-ink-2); font-size: 14px; line-height: 1; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.lp-pagination .page-item .page-link:hover { border-color: var(--lp-brand); color: var(--lp-brand-700); }
.lp-pagination .page-item.active .page-link { background: var(--lp-brand); border-color: var(--lp-brand); color: #fff; }
.lp-pagination .page-item.disabled .page-link { background: var(--lp-soft); color: var(--lp-faint); cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
    .lp-share-btn, .lp-linkedin-cta, .lp-checkpill label, .lp-select select { transition: none; }
}
