/* Job portal: /jobs/ search pages and the job pages (loaded after styles.css, with ?v=<code> so it is never stale) */

.jp-page { background: #F5F7FB; }

/* ---------- Search header ---------- */
.jp-hero { padding: 4px 0 22px; background: linear-gradient(180deg, #fff 0%, #F5F7FB 100%); border-bottom: 1px solid var(--line); }
.jp-hero-big { padding-bottom: 34px; background: radial-gradient(900px 260px at 50% -40px, var(--gold-50), transparent 70%), linear-gradient(180deg, #fff, #F5F7FB); }
.jp-crumbs { padding: 12px 0 6px; }
.jp-hero h1 { margin: 4px 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); letter-spacing: -.02em; }
.jp-sub { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.jp-sub b { color: var(--ink); }
.jp-search { display: flex; align-items: center; max-width: 920px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 14px 34px -18px rgba(10, 31, 79, .35); }
.jp-search:focus-within { border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(27, 58, 122, .14), 0 14px 34px -18px rgba(10, 31, 79, .35); }
.jp-sf { position: relative; display: flex; flex: 1 1 0; align-items: center; gap: 8px; min-width: 0; padding: 0 14px; }
.jp-sf + .jp-sf::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.jp-sf .ico { flex: none; width: 18px; height: 18px; color: #8A96B0; }
.jp-sf input, .jp-sf select { width: 100%; min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; }
.jp-sf input::placeholder { color: #8A96B0; }
.jp-sf-what { flex: 1.6 1 0; }
.jp-sf-exp { flex: .8 1 0; }
.jp-go { flex: none; min-height: 46px; padding: 0 28px; border-radius: 999px; }
.jp-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .88rem; }
.jp-popular span { color: var(--muted); font-weight: 600; }
.jp-popular a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy-600); font-weight: 600; text-decoration: none; }
.jp-popular a:hover { border-color: var(--navy-600); }

/* ---------- Three columns: filters · results · alerts ---------- */
.jp-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 250px; align-items: start; gap: 22px; max-width: 1280px; padding-top: 22px; padding-bottom: 44px; }
.jp-ftoggle { position: absolute; opacity: 0; pointer-events: none; }
.jp-fbtn, .jp-fdone { display: none; }
.jp-filters, .jp-sbox { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.jp-filters { position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; overscroll-behavior: contain; }
.jp-fhead { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.jp-fhead h2 { margin: 0; font-size: 1rem; }
.jp-fhead a { color: var(--navy-600); font-size: .85rem; font-weight: 700; }
.jp-fsec { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.jp-fsec:last-of-type { border-bottom: 0; }
.jp-fsec h3 { margin: 0 0 6px; font-size: .92rem; }
.jp-fsec ul { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.jp-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: #33415F; font-size: .9rem; text-decoration: none; }
.jp-opt:hover .jp-ol { color: var(--navy); text-decoration: underline; }
.jp-box { display: grid; flex: none; place-items: center; width: 16px; height: 16px; border: 1.5px solid #9AA5BD; border-radius: 4px; background: #fff; }
.jp-opt.on { color: var(--navy); font-weight: 700; }
.jp-opt.on .jp-box { border-color: var(--navy); background: var(--navy); }
.jp-opt.on .jp-box::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translate(0, -1px) rotate(-45deg); }
.jp-ol { flex: 1; min-width: 0; }
.jp-n { color: #8A96B0; font-size: .8rem; }
.jp-back { display: block; padding: 2px 0 6px; color: var(--navy-600); font-size: .86rem; font-weight: 700; text-decoration: none; }
.jp-none { color: #8A96B0; font-size: .86rem; }

/* ---------- Results ---------- */
.jp-rtop { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; }
.jp-rcount { margin: 0; color: #33415F; font-size: .98rem; font-weight: 600; }
.jp-sort { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; color: var(--muted); font-size: .86rem; }
.jp-sort a { color: var(--navy-600); font-weight: 700; text-decoration: none; }
.jp-sort a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.jp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.jp-chips a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #E9EEFA; color: var(--navy); font-size: .84rem; font-weight: 600; text-decoration: none; }
.jp-chips a:hover { background: #DCE4F7; }
.jp-list { display: grid; gap: 14px; }
.jp-list-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }

/* ---------- Job card ---------- */
.jcard { position: relative; padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.jcard:hover { border-color: #D0D8E8; box-shadow: 0 14px 32px -18px rgba(10, 31, 79, .35); }
.jcard-feat { border-color: #F3D27A; background: linear-gradient(180deg, #FFFCF2, #fff 60%); }
.jbadge { display: inline-block; margin: 0 0 6px; padding: 2px 9px; border-radius: 6px; background: var(--gold-50); color: #8A5A00; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.jbadge-gov { background: #E7F0FF; color: #1D3F9A; }
.jtitle { margin: 0 0 2px; font-size: 1.08rem; line-height: 1.35; }
.jtitle a { color: var(--ink); text-decoration: none; }
.jtitle a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }   /* the whole card opens the job */
.jcard:hover .jtitle a { color: var(--navy-600); text-decoration: underline; }
.jco { margin: 0 0 10px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.jverified { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: #E3F8EC; color: #11663A; font-size: .72rem; font-weight: 700; }
.jmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; padding: 0; color: #33415F; font-size: .88rem; list-style: none; }
.jmeta li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.jmeta .ico, .jsnip .ico, .jwhen .ico { flex: none; width: 15px; height: 15px; color: #8A96B0; }
.jsnip { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 10px; color: #5B6785; font-size: .87rem; line-height: 1.5; }
.jsnip .ico { margin-top: 3px; }
.jtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.jtags li { padding: 2px 9px; border-radius: 6px; background: #F1F4F9; color: var(--muted); font-size: .76rem; font-weight: 600; }
.jfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.jwhen { display: flex; align-items: center; gap: 6px; color: #7C88A4; font-size: .8rem; font-weight: 600; }
.jfoot .btn { position: relative; z-index: 1; min-height: 36px; padding: 6px 20px; }

/* ---------- No results, pages ---------- */
.jp-empty { padding: 26px; border: 1px dashed #C9D2E3; border-radius: 16px; background: #fff; }
.jp-empty-t { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.jp-empty p { margin: 0; color: var(--muted); }
.jp-empty ul { margin: 10px 0 0; padding-left: 18px; }
.jp-empty li { padding: 3px 0; }
.jp-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 0; }
.jp-pages a, .jp-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; }
.jp-pages span { border-color: var(--navy); background: var(--navy); color: #fff; }
.jp-pages a:hover { border-color: var(--navy-600); }

/* ---------- Right column ---------- */
.jp-side { position: sticky; top: calc(var(--header-h) + 12px); display: grid; gap: 14px; }
.jp-sbox { padding: 18px; }
.jp-sbox h2 { margin: 0 0 6px; font-size: 1rem; }
.jp-sbox p { margin: 0 0 12px; color: var(--muted); font-size: .87rem; }
.jp-alert { border-color: transparent; background: linear-gradient(160deg, var(--navy), var(--navy-600)); }
.jp-alert h2 { color: #fff; }
.jp-alert p { color: rgba(226, 232, 255, .85); }
.jp-more { color: var(--navy-600); font-size: .9rem; font-weight: 700; }

/* ---------- About, related searches, FAQ ---------- */
.jp-seo { padding: 48px 0; border-top: 1px solid var(--line); background: #fff; }
.jp-about, .jp-faq { max-width: 860px; }
.jp-about { margin: 0 0 32px; }
.jp-about h2, .jp-links h2, .jp-faq h2 { margin: 0 0 12px; font-size: 1.25rem; }
.jp-about p { color: #33415F; line-height: 1.7; }
.jp-links { margin: 0 0 32px; }
.jp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.jp-tiles a { display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
.jp-tiles a:hover { border-color: var(--navy-600); box-shadow: var(--shadow-sm); }
.jp-tiles .ico { grid-row: 1 / span 2; box-sizing: border-box; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--gold-50); color: #8A5A00; }
.jp-tiles span { font-size: .92rem; font-weight: 700; }
.jp-tiles small, .jp-linklist small { color: #8A96B0; font-size: .78rem; }
.jp-linklist { margin: 0; padding: 0; list-style: none; columns: 4 220px; column-gap: 24px; }
.jp-linklist li { padding: 4px 0; break-inside: avoid; }
.jp-linklist a { color: var(--navy-600); font-size: .9rem; text-decoration: none; }
.jp-linklist a:hover { text-decoration: underline; }
.jp-linklist small { margin-left: 6px; }

/* ---------- Job page extras ---------- */
.job-more-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.job-more-links a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy-600); font-size: .88rem; font-weight: 700; text-decoration: none; }
.job-more-links a:hover { border-color: var(--navy-600); }

/* Job description written in admin (HTML editor) */
.job-rich { margin: 14px 0 22px; color: #33415F; line-height: 1.7; overflow-wrap: anywhere; }
.job-rich h2, .job-rich h3, .job-rich h4 { margin: 1.4em 0 .5em; color: var(--navy); line-height: 1.3; }
.job-main .job-rich h2 { margin-top: 1.4em; font-size: 1.3rem; }
.job-rich h3 { font-size: 1.12rem; }
.job-rich h4 { font-size: 1rem; }
.job-rich > :first-child, .job-main .job-rich > :first-child { margin-top: 0; }
.job-rich p { margin: 0 0 1em; }
.job-rich ul, .job-rich ol { margin: 0 0 1em; padding-left: 1.4em; }
.job-rich li { margin: .3em 0; }
.job-rich li::marker { color: var(--gold-600); }
.job-rich a { color: var(--navy-600); text-decoration: underline; }
.job-rich blockquote { margin: 0 0 1em; padding: 12px 16px; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--gold-50); }
.job-rich table { display: block; max-width: 100%; margin: 0 0 1em; overflow-x: auto; border-collapse: collapse; }
.job-rich th, .job-rich td { padding: 8px 10px; border: 1px solid #DDE3EE; text-align: left; vertical-align: top; }
.job-rich th { background: #F4F6FA; color: var(--navy); }
.job-rich img { max-width: 100%; height: auto; border-radius: 10px; }
.job-rich hr { margin: 1.4em 0; border: 0; border-top: 1px solid #DDE3EE; }

/* ---------- Tablets: no right column ---------- */
@media (max-width: 1180px) {
  .jp-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .jp-side { display: none; }
}

/* ---------- Phones: search fields stacked, filters slide up from the bottom ---------- */
@media (max-width: 860px) {
  .jp-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 14px; }
  .jp-search { flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 18px; }
  .jp-sf { flex: 1 1 100%; border: 1px solid var(--line); border-radius: 12px; }
  .jp-sf + .jp-sf::before { display: none; }
  .jp-sf-exp { flex: 1 1 0; }
  .jp-go { border-radius: 12px; }
  .jp-fbtn { display: inline-flex; align-items: center; justify-self: start; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; cursor: pointer; }
  .jp-fbtn .ico { width: 16px; height: 16px; }
  .jp-fbtn b { padding: 0 7px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .78rem; }
  .jp-filters { display: none; position: fixed; top: 10vh; right: 0; bottom: 0; left: 0; z-index: 300; max-height: none; border-radius: 20px 20px 0 0; box-shadow: 0 -20px 60px rgba(6, 21, 56, .4); }
  .jp-ftoggle:checked ~ .jp-filters { display: block; }
  .jp-fdone { position: sticky; bottom: 0; display: flex; justify-content: center; margin: 8px 12px 12px; cursor: pointer; }
  .jcard { padding: 16px 16px 12px; }
  .jp-linklist { columns: 2 150px; }
}
@media (prefers-reduced-motion: reduce) { .jcard { transition: none; } }

/* SEO 2026-11-24 */
.jp-areas { max-height: 300px; overflow-y: auto; }
.job-areas { line-height: 1.8; color: #33415F; }
.jp-paywrap { overflow-x: auto; }
.jp-pay { width: 100%; max-width: 640px; border-collapse: collapse; background: #fff; }
.jp-pay th, .jp-pay td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.jp-pay th { font-size: .84rem; color: #55627F; }
.jp-small { margin: 10px 0 0; font-size: .84rem; }
.jp-needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 32px; }
.jp-needs ul { margin: 0; padding-left: 20px; line-height: 1.7; color: #33415F; }
.jp-needs .jp-small { grid-column: 1 / -1; }
