/* ============================================================
   Public job search (ADR-0125, Library/clsSearchWeb.py) + the
   header / footer additions of the job-seeker site. Loaded by
   base.html after styles.css; uses its tokens and logical
   properties only, so right-to-left mirrors by itself.
   Prefix: .jb-* (job board), .nav-cand / .nav-employer (header).
   The public site is light-only (styles.css "DARK MODE" note).
   ============================================================ */

/* ---------------- header ---------------- */
.nav-links .nav-signin { font-weight: 600; white-space: nowrap; }
.nav .nav-links a.nav-employer { display: inline-flex; align-items: center; gap: 8px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); white-space: nowrap; }
.nav .nav-links a.nav-employer:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.nav-employer i { font-size: .9rem; }

.nav-cand { position: relative; }
.nav-cand summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 2px; border-radius: 999px; color: #e8eef7; }
.nav-cand summary::-webkit-details-marker { display: none; }
.nav-cand summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nav-cand .lang-caret { font-size: .62rem; opacity: .8; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #fff; background: linear-gradient(135deg, #146fb6, #2c539a);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.nav-cand-menu { position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 10px 34px rgba(11, 32, 54, .22); }
.nav-cand-who { display: flex; flex-direction: column; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.nav-cand-who strong { color: var(--navy-900); font-size: .92rem; }
.nav-cand-who span { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.nav .nav-links .nav-cand-menu a,
.home-hero-dark .nav .nav-links .nav-cand-menu a,
.nav-cand-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 7px;
  color: var(--ink); font-size: .9rem; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: start; }
.nav .nav-links .nav-cand-menu a:hover,
.home-hero-dark .nav .nav-links .nav-cand-menu a:hover,
.nav-cand-menu button:hover { background: var(--bg); color: var(--navy-900); text-decoration: none; }
.nav-cand-menu form { margin: 0; }
.nav-cand-menu i { width: 18px; color: var(--navy-700); }

@media (max-width: 1080px) {
  .nav-inner { gap: 14px; }
  .nav-links { gap: 14px; }
}
@media (max-width: 900px) {
  .nav-employer span { display: none; }
  .nav .nav-links a.nav-employer { padding: 7px 10px; }
}
@media (max-width: 760px) {
  .nav-links a.nav-secondary { display: none; }
}

/* ---------------- shared bits ---------------- */
.jb-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .jb-wrap { padding: 0 16px; } }
.jb-h1 { font-size: 1.35rem; font-weight: 800; color: var(--navy-900); margin: 0; letter-spacing: -.01em; }
.jb-h2 { font-size: 1.3rem; font-weight: 800; color: var(--navy-900); margin: 0 0 16px; letter-spacing: -.01em; }
.jb-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.jb-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: .9rem;
  background: var(--card); border: 1px solid var(--line); color: var(--navy-900); font-weight: 500; white-space: nowrap; }
.jb-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.jb-chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.jb-chip-n { font-size: .76rem; color: var(--muted); font-weight: 600; }
.jb-chip.is-on .jb-chip-n { color: #dbeafb; }
.jb-chip-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #e6eef8; }
.jb-chip-dark:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .45); }

/* ---------------- the What / Where form ---------------- */
.jb-form { display: flex; align-items: stretch; gap: 0; background: #fff; border-radius: 14px; padding: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .25); max-width: 900px; }
.jb-field { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; }
.jb-field + .jb-field { border-inline-start: 1px solid var(--line); }
.jb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.jb-combo { position: relative; display: flex; align-items: center; height: 100%; }
.jb-combo > i, .jb-combo > svg { position: absolute; inset-inline-start: 16px; color: var(--navy-700); pointer-events: none; }
.jb-combo input { width: 100%; height: 54px; border: 0; outline: 0; background: transparent; font-size: 1.02rem; color: var(--ink);
  padding-inline: 44px 14px; font-family: inherit; border-radius: 10px; }
.jb-combo input:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.jb-combo input::-webkit-search-cancel-button { cursor: pointer; }
.jb-go { flex: none; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.02rem;
  padding: 0 30px; cursor: pointer; font-family: inherit; min-height: 54px; }
.jb-go:hover { background: var(--accent-dark); }
.jb-go:focus-visible { outline: 3px solid rgba(20, 111, 182, .4); outline-offset: 2px; }
.jb-suggest { position: absolute; z-index: 40; top: calc(100% + 8px); inset-inline: 0; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(11, 32, 54, .22);
  max-height: 330px; overflow-y: auto; }
.jb-suggest li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px;
  border-radius: 8px; cursor: pointer; color: var(--ink); font-size: .95rem; }
.jb-suggest li[aria-selected="true"], .jb-suggest li:hover { background: #eaf2fb; color: var(--navy-900); }
.jb-opt-kind { font-size: .74rem; color: var(--muted); flex: none; }
.jb-form-compact { box-shadow: none; border: 1px solid var(--line); max-width: none; }
.jb-form-compact .jb-combo input, .jb-form-compact .jb-go { height: 46px; min-height: 46px; }
@media (max-width: 720px) {
  .jb-form { flex-direction: column; padding: 8px; gap: 6px; }
  .jb-field + .jb-field { border-inline-start: 0; border-top: 1px solid var(--line); }
  .jb-go { min-height: 50px; }
}

/* ---------------- home ---------------- */
.jb-home { background: var(--bg); }
.jb-hero { position: relative; background: var(--navy-900); color: #fff; isolation: isolate; padding: 132px 0 56px; }
.jb-hero .hero-v2-bg { overflow: hidden; }
.jb-hero-inner { position: relative; z-index: 1; }
.jb-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #cfe1f4; font-size: .86rem; font-weight: 600; }
.jb-hero-title { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; margin: 0; color: #fff; }
.jb-hero-lede { color: #cfdced; font-size: 1.12rem; margin: 12px 0 26px; max-width: 640px; }
.jb-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.jb-cities-label { color: #9fb4cc; font-size: .88rem; margin-inline-end: 4px; }
.jb-section { padding: 44px 0 8px; }
.jb-section-alt { padding-bottom: 36px; }
.jb-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.jb-more { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.jb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.jb-companies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.jb-company { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); }
.jb-company:hover { border-color: var(--accent); text-decoration: none; box-shadow: var(--shadow); }
.jb-company-text { display: flex; flex-direction: column; min-width: 0; }
.jb-company-text strong { color: var(--navy-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-company-text span { color: var(--muted); font-size: .85rem; }
.jb-employer { margin-top: 44px; background: var(--navy-900); color: #fff; padding: 36px 0; }
.jb-employer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.jb-employer h2 { margin: 0 0 6px; font-size: 1.4rem; color: #fff; }
.jb-employer p { margin: 0; color: #cfdced; max-width: 640px; }
.jb-employer-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.jb-home .footer { margin-top: 0; }
@media (max-width: 600px) {
  .jb-hero { padding: 104px 0 36px; }
  .jb-grid { grid-template-columns: 1fr; }
}

/* ---------------- cards ---------------- */
.jb-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  transition: border-color .12s, box-shadow .12s; }
.jb-card:hover { border-color: #b9cde3; box-shadow: 0 2px 12px rgba(16, 32, 54, .07); }
.jb-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 4px 16px rgba(20, 111, 182, .12); }
.jb-card-head { display: flex; gap: 12px; align-items: flex-start; }
.jb-card-logo { margin-top: 2px; }
.jb-card-main { flex: 1; min-width: 0; }
.jb-card-title { margin: 0; font-size: 1.05rem; line-height: 1.3; font-weight: 700; }
.jb-card-title a { color: var(--navy-900); }
.jb-card-title a:hover { color: var(--accent); text-decoration: underline; }
.jb-card-title a::after { content: ""; }
.jb-card-co { color: var(--ink); font-size: .92rem; margin-top: 2px; }
.jb-card-place { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.jb-card-place i { font-size: .8rem; }
.jb-card-save { flex: none; }
.jb-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.jb-tags li { background: var(--bg); border-radius: 6px; padding: 3px 9px; font-size: .8rem; color: var(--navy-900); font-weight: 600; }
.jb-tags .jb-tag-pay { background: #e8f5ee; color: #16623c; }
.jb-card-snippet { margin: 10px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jb-card-foot { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.jb-new { color: #b4441b; font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------------- results page ---------------- */
.jb-search-page { background: var(--bg); }
.jb-search-page .footer { margin-top: 48px; }
.jb-bar { background: var(--navy-900); padding: 14px 0 18px; }
.jb-bar .jb-form-compact { border-color: transparent; }
.jb-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 10px; }
.jb-select { position: relative; margin: 0; }
.jb-select select { appearance: none; -webkit-appearance: none; font-family: inherit; font-size: .88rem; font-weight: 600;
  color: var(--navy-900); background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 34px 7px 14px; cursor: pointer; max-width: 240px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 53%, calc(100% - 12px) 53%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .jb-select select { padding: 7px 14px 7px 34px; background-position: 12px 53%, 17px 53%; }
.jb-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jb-select.is-on select { background-color: #eaf2fb; border-color: var(--accent); color: var(--accent-dark); }
.jb-select-sort { margin-inline-start: auto; }
.jb-clear { font-size: .88rem; font-weight: 600; }
.jb-facet-cities { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.jb-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 14px; }
.jb-count { margin: 0; color: var(--muted); font-size: .92rem; }
.jb-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.jb-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.jb-pane { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; overscroll-behavior: contain; }
.jb-pane-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 320px; padding: 30px; color: var(--muted); }
.jb-pane-empty i { font-size: 2rem; color: var(--navy-700); opacity: .6; }
.jb-pane-head { position: sticky; top: 0; z-index: 2; background: var(--card); padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.jb-pane-co { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.jb-pane-title { font-size: 1.45rem; line-height: 1.2; margin: 10px 0 4px; color: var(--navy-900); outline: none; }
.jb-pane-place, .jb-pane-pay { margin: 2px 0; color: var(--muted); font-size: .92rem; }
.jb-pane-pay { color: #16623c; font-weight: 600; }
.jb-pane-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.jb-pane-off { color: #8a5a00; font-weight: 600; font-size: .9rem; }
.jb-pane-full { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--navy-700); }
.jb-pane-full:hover { border-color: var(--accent); }
.jb-pane-body { padding: 18px 24px 26px; }
.jb-pane-body .cr-chips { margin: 0 0 8px; }
.jb-pane-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.jb-pane-body .cr-section h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.jb-pane-body .cr-section h4 { font-size: .92rem; margin: 12px 0 6px; color: var(--muted); }
.jb-pages { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; flex-wrap: wrap; }
.jb-page { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); color: var(--navy-900); font-weight: 600; padding: 0 10px; }
.jb-page:hover { border-color: var(--accent); text-decoration: none; }
.jb-page.is-on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.jb-empty { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 40px 24px; }
.jb-empty > i { font-size: 2.2rem; color: var(--navy-700); opacity: .6; }
.jb-empty h2 { margin: 10px 0 8px; font-size: 1.25rem; color: var(--navy-900); }
.jb-empty-tips { list-style: none; padding: 0; margin: 0 0 18px; color: var(--muted); line-height: 1.9; }
.jb-empty-cities { justify-content: center; }
.jb-empty-sm { padding: 28px 20px; }
.jb-alert-hint { margin: 22px 0 0; color: var(--muted); font-size: .9rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 991px) {
  .jb-split { grid-template-columns: 1fr; }
  .jb-pane { display: none; }
  .jb-card.is-active { border-color: var(--line); box-shadow: none; }
}
@media (max-width: 600px) {
  .jb-bar { padding: 10px 0 12px; }
  .jb-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-top: 12px; }
  .jb-select-sort { margin-inline-start: 0; }
  .jb-card { padding: 14px; }
}

/* ---------------- two sign-in doors (employer auth pages, job seeker /c/login) ---------------- */
.auth-for { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 4px 11px; border-radius: 999px;
  background: #eaf2fb; color: var(--navy-800); font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.auth-door { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; color: var(--muted); }
.auth-door a { font-weight: 700; }
.auth-door i { color: var(--navy-700); }
.cand-login-perks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .9rem; }
.cand-login-perks i { width: 20px; color: var(--accent); }
.cand-box .auth-door { margin: 20px 0 0; }
/* The job-seeker portal (cand_base.html) follows the system theme. */
[data-theme="dark"] .auth-for { background: rgba(79, 153, 230, .16); color: var(--accent-dark); }
