/* NAB-2.3.8: phone-first Jobs list (job-connect/index), employer form cards (post-vacancy) and share row
   (vacancy). Loaded ONLY on those pages (@section('head')), never on the homepage or news. Same colours as
   the JOBS-THEME-01 part of nab.css: royal blue #1652b0, navy #0a2540, muted #5f6b75. */

/* ---------- Jobs list ---------- */
.jl-top { margin: 12px 0 8px; }
.jl-top.nab-brand-band { padding: 16px; } /* NAB-2.3.9: brand band (nab.css); the chip row bleeds to its padding edge */
.jl-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jl-title { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 800; color: #0a2540; }
.jl-postlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 700; color: #1652b0; text-decoration: none; }
.jl-postlink:hover { text-decoration: underline; }
.jl-form { margin: 8px 0 0; }
.jl-search { display: flex; align-items: stretch; border: 2px solid #c9d5e3; border-radius: 14px; background: #fff; overflow: hidden; }
.jl-search:focus-within { border-color: #1652b0; box-shadow: 0 0 0 3px rgba(22, 82, 176, .15); }
.jl-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; background: transparent; font: inherit; font-size: 16px; color: #0a2540; outline: none; -webkit-appearance: none; appearance: none; }
.jl-search button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; border: 0; background: #1652b0; color: #fff; cursor: pointer; }
.jl-search button:hover { background: #0f3f8c; }
.jl-chips { display: flex; gap: 8px; margin: 10px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jl-chips::-webkit-scrollbar { display: none; }
.jl-chip { flex: none; box-sizing: border-box; display: inline-flex; align-items: center; min-height: 40px; max-width: 220px; padding: 0 14px; border: 1.5px solid #c9d5e3; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #0a2540; text-decoration: none; white-space: nowrap; cursor: pointer; }
select.jl-chip { max-width: 170px; padding-right: 30px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a2540' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; text-overflow: ellipsis; }
.jl-chip:hover, .jl-chip.is-on { border-color: #1652b0; color: #1652b0; }
.jl-chip.is-on { background-color: #eaf1fb; }
.jl-chip--near { border-color: #1652b0; background: #1652b0; color: #fff; }
.jl-chip--near:hover { background: #0f3f8c; color: #fff; }
.jl-chip--clear { color: #5f6b75; }
.jl-chip:focus-visible, .jl-search button:focus-visible, .jl-postlink:focus-visible, .jl-apply:focus-visible, .jl-card-title a:focus-visible, .jl-hire:focus-visible, .jl-help:focus-visible { outline: 2px solid #1652b0; outline-offset: 2px; }
.jl-trust { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #5f6b75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-trust a { font-weight: 700; color: #8f1d2c; }

.jl-results { scroll-margin-top: 80px; padding-bottom: 16px; }
.jl-count { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 8px; }
.jl-count p { margin: 0; font-size: 13px; font-weight: 600; color: #5f6b75; }
.jl-help { min-height: 32px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: #1652b0; text-decoration: underline; cursor: pointer; }
.jl-help[hidden] { display: none; }
.jl-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .jl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.jl-item { min-width: 0; margin: 0; }
.jl-card { position: relative; box-sizing: border-box; height: 100%; padding: 12px 14px; border: 1px solid #d5dde6; border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.jl-card:hover { border-color: #1652b0; box-shadow: 0 4px 14px rgba(10, 37, 64, .08); }
.jl-card-title { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; color: #0a2540; overflow-wrap: anywhere; }
.jl-card-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.jl-card-title:has(.jl-new) a { display: inline; }
.jl-card-title a { color: inherit; text-decoration: none; }
.jl-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; } /* whole card opens the vacancy */
.jl-new { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e8f7f0; font-size: 11px; font-weight: 700; line-height: 1.6; color: #14633f; vertical-align: 2px; }
.jl-card-meta { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: #5f6b75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jl-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.jl-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; font-size: 12px; }
.jl-tags li { padding: 3px 9px; border-radius: 999px; background: #f1f4f7; color: #0a2540; white-space: nowrap; }
.jl-apply { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 76px; padding: 0 16px; border: 2px solid #1652b0; border-radius: 10px; background: #1652b0; font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; }
.jl-apply:hover { background: #0f3f8c; border-color: #0f3f8c; color: #fff; }
.jl-hire { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; height: 100%; min-height: 56px; padding: 12px 14px; border: 1.5px dashed #1652b0; border-radius: 14px; background: #f2f6fd; font-size: 14px; color: #0a2540; text-decoration: none; }
.jl-hire span { font-weight: 700; color: #1652b0; }
.jl-hire:hover { background: #eaf1fb; }
.jl-empty { padding: 16px; border: 1px dashed #8a96a0; border-radius: 14px; font-size: 14px; line-height: 1.6; color: #5f6b75; margin-bottom: 10px; }
.jl-empty p { margin: 0; }
.jl-empty p + p { margin-top: 4px; }
.jl-empty strong { color: #0a2540; }
.jl-empty a { font-weight: 700; color: #1652b0; }
.jl-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #5f6b75; }
.jl-pages { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; color: #5f6b75; }
.jl-pages a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid #1652b0; border-radius: 10px; font-weight: 700; color: #1652b0; text-decoration: none; }
.jl-near { margin: 8px 0 16px; }
.jl-near > summary { font-weight: 700; }
.jl-near .nab-sheet .nv-near { margin: 0; }
.jl-safety { padding-bottom: 24px; }
@media (min-width: 768px) {
    .jl-title { font-size: 28px; }
    .jl-chips { flex-wrap: wrap; margin: 12px 0 0; padding: 0; overflow: visible; }
}

.jl-near .is-sheet .nab-sheet-head.nab-brand-band { background: var(--nab-brand-band); margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; border-radius: 22px 22px 0 0; }

/* NAB-2.3.9: "कसरी काम गर्छ?" plain Q&A */
.jl-how { margin: 8px 0 20px; padding: 16px; border: 1px solid #d5dde6; border-radius: 14px; background: #fff; }
.jl-how h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: #0a2540; }
.jl-how dl { margin: 0; }
.jl-how dl > div + div { margin-top: 12px; }
.jl-how dt { font-size: 15px; font-weight: 700; color: #0a2540; }
.jl-how dd { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: #3f4a54; }

/* NAB-2.3.11: employer "photo and phone only" option: one small link above the full form, a plain section below it. */
.nab-quick-link { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.nab-quick-link a { font-weight: 700; color: #1652b0; text-decoration: underline; text-underline-offset: 3px; }
.nab-quick { margin-top: 20px; padding: 16px; border: 1px solid #d5dde6; border-radius: 16px; background: #fff; scroll-margin-top: 80px; }
.nab-quick-title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.4; color: #0a2540; }
.nab-quick-hint { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: #5f6b75; }
.nab-quick-form { display: grid; gap: 16px; margin: 14px 0 0; }
.nab-quick-back { margin: 14px 0 0; font-size: 14px; }
.nab-quick-back a { font-weight: 700; color: #1652b0; }

/* NAB-2.3.11: line icons instead of emoji; the card's place opens Google Maps */
.nab-icon { flex: none; display: inline-block; vertical-align: -2px; }
.jl-chip .nab-icon, .jl-tags .nab-icon, .jl-trust .nab-icon { margin-right: 4px; }
.jl-chip--near .nab-icon { color: #fff; }
.jl-tags li .nab-icon { color: #5f6b75; }
.jl-trust .nab-icon { color: #14633f; }
.jl-card-place { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; margin: 2px 0 0; overflow: hidden; font-size: 13px; line-height: 1.45; color: #5f6b75; white-space: nowrap; }
.jl-card-place .nab-icon { color: #1652b0; }
.jl-card-place a, .jl-card-place span { overflow: hidden; text-overflow: ellipsis; }
.jl-card-place a { color: #1652b0; text-decoration: underline; text-underline-offset: 2px; }
.jl-card-place a:focus-visible { outline: 2px solid #1652b0; outline-offset: 2px; }
.nab-sheet-head h2 .nab-icon, .jl-near > summary .nab-icon { margin-right: 6px; color: #1652b0; vertical-align: -3px; }

/* NAB-2.3.11: "काम गर्ने ठाउँ" block (vacancy + apply page) */
.nab-wp { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 12px 0 0; }
.nab-wp-text { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 14px; line-height: 1.6; color: #0a2540; overflow-wrap: anywhere; }
.nab-wp-text .nab-icon { margin-top: 2px; color: #1652b0; }
.nab-wp-text .nab-icon { color: #1652b0; }
.nab-wp-map.nv-map { height: 220px; margin-top: 0; }
.nab-wp-note, .nab-wp-status { margin: 0; font-size: 12px; line-height: 1.5; color: #5f6b75; }
.nab-wp-status:empty { display: none; }

/* NAB-2.3.12: only the chip/pill opens "मेरो नजिक"; with JavaScript the <details> row is not shown */
.jl-near.is-js { margin: 0; }
body.nab-jobs .jl-near.is-js > summary { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nab-opp-near { justify-self: start; }
.nab-opp-employer .nab-btn2 { min-height: 44px; }

/* ---------- Share row (vacancy page) ---------- */
.nab-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.nab-share-label { font-size: 13px; font-weight: 700; color: #5f6b75; }
.nab-share a, .nab-share button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid #c9d5e3; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #0a2540; text-decoration: none; cursor: pointer; }
.nab-share a:hover, .nab-share button:hover { border-color: #1652b0; color: #1652b0; }
.nab-share a:focus-visible, .nab-share button:focus-visible { outline: 2px solid #1652b0; outline-offset: 2px; }
.nab-share [data-nab-share-done] { font-size: 13px; color: #14633f; }

/* ---------- Employer form (post-vacancy): 3 cards, big tap targets, sticky send on phones ---------- */
.nab-vf-card { background: #fff; }
.nab-vf-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 999px; background: #1652b0; font-size: 14px; font-weight: 800; color: #fff; vertical-align: 1px; }
.nab-vf-h { margin: 0 0 12px; font-size: 16px; font-weight: 700; line-height: 1.4; color: #0a2540; }
.nab-vf-card--group > fieldset { border: 0; padding: 0; border-radius: 0; }
.nab-vf-card--group > fieldset + fieldset { padding-top: 16px; border-top: 1px solid #e3e8ee; }
.nab-vf-card--group > fieldset > legend { padding: 0; font-size: 15px; }
[data-nab-vacancy-form] input[type="text"], [data-nab-vacancy-form] input[type="tel"], [data-nab-vacancy-form] input[type="email"], [data-nab-vacancy-form] input[type="date"], [data-nab-vacancy-form] select { min-height: 48px; font-size: 16px; }
[data-nab-vacancy-form] input[type="checkbox"], [data-nab-vacancy-form] input[type="radio"] { width: 22px; height: 22px; }
@media (max-width: 1023px) {
    .nab-vf-send { position: sticky; bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); z-index: 30; margin-left: -16px; margin-right: -16px; padding: 10px 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 -6px 16px rgba(10, 37, 64, .08); }
    .nab-vf-send > a { display: none; }
    .nab-vf-send button[type="submit"] { min-height: 52px; font-size: 16px; }
}
