/* ═══════════════════════════════════════════════════════════════════════
   v2 (2026-10-07) — loaded after styles.css when YJ_V2 is on (inc/v2.php).
   Built for apply-click conversion: jobs first, compact list rows, Refine
   instead of a sidebar, desktop list + job pane, slim cookie bar.
   Mockup: https://claude.ai/artifact/4aqN6dCBjJqstkgVharom8
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/sourcesans3-latin-var.woff2') format('woff2');
}

:root {
  --v2-ink: #111614;
  --v2-muted: #56615b;
  --v2-rule: #e1e7e3;
  --v2-field: #c9d2cd;
  --v2-wash: #f4f7f5;
  --v2-sel: #eef6f1;
  --v2-link: #1e7a4f;
  /* Buttons: the brand green #46b47f behind white text is 2.6:1; this shade of it passes 4.5:1. */
  --v2-btn: #2a8659;
  --v2-btn-hover: #226f49;
}

/* ── Type: Source Sans 3 everywhere. font-size-adjust keeps every existing px size the same
      visual size it had in Poppins (Source Sans has a smaller x-height). ── */
body.v2 {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size-adjust: 0.53;
  color: var(--v2-ink);
}
body.v2 .logo .brand-text { font-size-adjust: none; }

/* ── Buttons ── */
body.v2 .btn-primary, body.v2 .btn-apply { background: var(--v2-btn); border-color: var(--v2-btn); }
body.v2 .btn-primary:hover, body.v2 .btn-apply:hover { background: var(--v2-btn-hover); border-color: var(--v2-btn-hover); box-shadow: none; }
body.v2 .btn-apply-large::after { content: none; }

/* ── Header: shorter ── */
body.v2 .header-inner { height: 64px; }
@media (max-width: 768px) { body.v2 .header-inner { height: 56px; } body.v2 .logo .brand-mark { height: 30px; width: 30px; } body.v2 .logo .brand-text { font-size: 24px; } }

.v2-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── List search bar ── */
.v2-search { border-bottom: 1px solid var(--v2-rule); background: var(--v2-wash); }
.v2-search-sum {
  width: 100%; display: flex; gap: 10px; align-items: center; padding: 11px 16px;
  color: var(--v2-ink); font-weight: 600; font-size: 16px; text-align: left;
}
.v2-search-sum span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-search-fields { display: flex; gap: 8px; padding: 0 16px 12px; flex-wrap: wrap; }
.v2-search.js .v2-search-fields { display: none; }
.v2-search:not(.js) .v2-search-sum { display: none; }
.v2-search:not(.js) .v2-search-fields { padding-top: 12px; }
.v2-search.js.open .v2-search-fields { display: flex; }
.v2-search input {
  flex: 1 1 180px; min-width: 0; border: 1px solid var(--v2-field); border-radius: 4px;
  padding: 10px 12px; background: #fff; font-size: 16px; color: var(--v2-ink);
}
.v2-search-go { background: var(--v2-btn); color: #fff; border-radius: 4px; padding: 10px 22px; font-weight: 600; font-size: 16px; }
.v2-search-go:hover { background: var(--v2-btn-hover); }
@media (min-width: 760px) {
  .v2-search { background: #fff; }
  .v2-search-sum { display: none; }
  .v2-search-fields, .v2-search.js .v2-search-fields { display: flex; max-width: 1120px; margin: 0 auto; padding: 12px 24px; }
  .v2-search input { flex: 1 1 260px; }
}

/* ── List header ── */
body.v2 .v2-crumbs-wrap { padding-top: 4px !important; }
body.v2 .breadcrumbs { padding: 8px 0 2px; }
body.v2 .breadcrumbs li { font-size: 13px; }
body.v2 .breadcrumbs li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
body.v2 .v2-intro { background: none; border: 0; padding: 0; margin: 0; }
body.v2 .v2-intro h1, body.v2 .listings-header h1 {
  font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; margin: 2px 0 2px; text-wrap: balance;
}
body.v2 .v2-count, body.v2 .listings-header .results-count { font-size: 14px; color: var(--v2-muted); margin: 0; }
body.v2 .v2-intro .v2-count { padding-bottom: 0; }
body.v2 .v2-uplink { font-size: 15px; color: var(--v2-muted); margin: 12px auto 0; }
@media (max-width: 768px) {
  body.v2 .v2-intro h1, body.v2 .listings-header h1 { font-size: 21px; }
}

/* ── List layout: listings-main flattens so header, tools, Refine, list and pane can be ordered ── */
body.v2 .listings-layout {
  display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 28px; row-gap: 0;
  padding-top: 0; padding-bottom: 32px;
}
body.v2 .listings-main { display: contents; }
body.v2 .listings-main > * { order: 7; flex: 1 1 100%; min-width: 0; }
/* line break after the tools row, so the list (and pane) always start on their own row */
body.v2 .listings-layout::before { content: ''; order: 4; flex: 0 0 100%; height: 0; }
body.v2 .listings-header { order: 1; margin: 0; }
body.v2 .listings-toolbar {
  order: 2; flex: 1 1 auto; margin: 0; padding: 8px 0; gap: 8px;
  flex-direction: row !important; align-items: center !important; justify-content: flex-start;
}
body.v2 .results-count-mobile { display: none; }
body.v2 .listings-sort, body.v2 .listings-toolbar form { display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--v2-muted); }
body.v2 .listings-toolbar select { border: 0; background: none; font-weight: 600; color: var(--v2-ink); font-size: 15px; padding: 2px; }

body.v2 .v2-refine {
  order: 3; flex: 0 0 auto; position: static; max-height: none; overflow: visible; padding: 8px 0;
  display: block !important; align-self: center;
}
body.v2 .v2-refine[open] { flex: 1 1 100%; padding-bottom: 12px; border-bottom: 1px solid var(--v2-rule); }
body.v2 .v2-refine > summary {
  list-style: none; cursor: pointer; display: inline-block; border: 1px solid var(--v2-field); border-radius: 4px;
  padding: 3px 14px; font-weight: 600; font-size: 15px; color: var(--v2-ink); background: #fff;
}
body.v2 .v2-refine > summary::-webkit-details-marker { display: none; }
body.v2 .v2-refine h3 { display: none; }
body.v2 .v2-refine form { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin-top: 12px; }
body.v2 .v2-refine .filter-group { margin: 0; }
body.v2 .v2-refine .filter-group h4 { font-size: 14px; font-weight: 600; color: var(--v2-muted); }
body.v2 .v2-refine input, body.v2 .v2-refine select { border: 1px solid var(--v2-field); border-radius: 4px; padding: 7px 8px; background: #fff; font-size: 15px; }
body.v2 .v2-refine .filter-salary { display: flex; gap: 6px; }
body.v2 .v2-refine .filter-salary input { width: 6.5rem; }
body.v2 .v2-refine .filter-form-submit { background: var(--v2-btn); color: #fff; border-radius: 4px; padding: 8px 18px; font-weight: 600; }
body.v2 .v2-refine .filter-list { columns: 2; column-gap: 24px; }
body.v2 .v2-refine .filter-list li a { padding: 4px 0; font-size: 15px; color: var(--v2-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; border-radius: 0; }
body.v2 .v2-refine .filter-list li a:hover { background: none; }
body.v2 .v2-refine .filter-list li a.active { background: none; color: var(--v2-ink); font-weight: 700; text-decoration: none; }
@media (min-width: 760px) { body.v2 .v2-refine .filter-list { columns: 4; } }

body.v2 .jobs-grid { order: 5; display: block; margin: 0 0 24px; border-top: 1px solid var(--v2-rule); }
body.v2 .listings-layout .jobs-grid { margin-bottom: 0; }
body.v2 .listings-main > .pagination, body.v2 .listings-main > nav.pagination { order: 6; }

/* ── List row (job card) ── */
.jc { position: relative; border-bottom: 1px solid var(--v2-rule); padding: 10px 0; }
.jc-title { font-size: 17px; line-height: 1.25; margin: 0; font-weight: 600; letter-spacing: 0; }
.jc-link { color: var(--v2-ink); text-decoration: none; }
.jc-link::after { content: ''; position: absolute; inset: 0; }
.jc-link:hover { color: var(--v2-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.jc-link:focus-visible { outline: none; }
.jc:has(.jc-link:focus-visible) { outline: 2px solid var(--v2-btn); outline-offset: -2px; }
.jc-co { margin: 0; font-size: 14px; color: var(--v2-muted); }
.jc-direct { color: var(--v2-link); font-weight: 600; }
.jc-direct::before { content: '· '; color: var(--v2-muted); font-weight: 400; }
.jc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2px; }
.jc-pay { margin: 0; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; min-width: 0; }
.jc-apply {
  position: relative; z-index: 1; flex: none; border: 1px solid var(--v2-btn); color: var(--v2-btn);
  border-radius: 4px; padding: 2px 16px; font-size: 14.5px; font-weight: 600; text-decoration: none; background: #fff;
}
.jc-apply:hover { background: var(--v2-btn); color: #fff; }
.jc-meta { margin: 0; font-size: 14px; color: var(--v2-muted); }
.jc-sum { margin: 4px 0 0; font-size: 15px; color: var(--v2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 759px) { .jc-sum { display: none; } }

/* Related / similar jobs and the home page use the same rows */
body.v2 .section .jobs-grid { border-top: 1px solid var(--v2-rule); max-width: 760px; }

/* ── Desktop: list + job pane ── */
.v2-pane { display: none; }
@media (min-width: 1000px) {
  body.v2 .listings-layout.has-pane .jobs-grid { flex: 0 0 420px; }
  body.v2 .listings-layout.has-pane .jc { padding: 12px; }
  body.v2 .listings-layout.has-pane .jc.on { background: var(--v2-sel); }
  body.v2 .listings-layout.has-pane .jc.on .jc-link { color: var(--v2-link); }
  body.v2 .listings-layout.has-pane .v2-pane {
    display: block; order: 5; flex: 1 1 0; min-width: 0; position: sticky; top: 76px;
    max-height: calc(100vh - 92px); overflow: auto; border: 1px solid var(--v2-rule); border-radius: 6px;
    padding: 4px 28px 28px; margin-top: 12px; overscroll-behavior: contain;
  }
  .v2-pane h2 { font-size: 24px; line-height: 1.25; margin: 14px 0 2px; }
  .v2-pane .job-detail-company { margin: 0; color: var(--v2-muted); font-weight: 400; font-size: 15px; }
  .v2-pane .job-detail-card { border: 0; box-shadow: none; padding: 0; margin-top: 14px; max-width: 520px; }
  .v2-pane .job-detail-card .btn-apply-large { width: auto; padding: 12px 40px; }
  .v2-pane .job-detail-card-note { text-align: left; }
  .v2-pane .job-detail-body { margin-top: 18px; }
  .v2-pane-loading { color: var(--v2-muted); }
  .v2-pane-full { display: inline-block; margin-top: 8px; font-size: 15px; }
}

/* ── Job page ── */
body.v2 .job-detail-header { margin-bottom: 16px; }
body.v2 .job-detail-company { font-size: 15px; font-weight: 400; color: var(--v2-muted); }
.v2-jd-pay { margin: 8px 0 0; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.v2-jd-where { margin: 0; color: var(--v2-muted); font-size: 15px; }
body.v2 .job-detail-card { box-shadow: none; border-color: var(--v2-rule); }
body.v2 .job-detail-facts dt { text-transform: none; font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--v2-muted); }
body.v2 .job-detail-facts dd { font-size: 14px; }
body.v2 .job-detail-facts dd a { color: var(--v2-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
body.v2 .job-detail-body { font-size: 16px; line-height: 1.6; }
body.v2 .job-detail-apply-bottom { background: none; border: 0; border-top: 1px solid var(--v2-rule); border-radius: 0; }
body.v2 .job-detail-apply-mobile { transition: transform .15s ease; }
body.v2 .job-detail-apply-mobile.v2-off { transform: translateY(110%); visibility: hidden; transition: transform .15s ease, visibility 0s .15s; }
@media (prefers-reduced-motion: reduce) { body.v2 .job-detail-apply-mobile { transition: none; } }

/* ── Cookie banner (CookieYes): a slim full-width bar on phones; Reject and Accept equal ── */
@media (max-width: 576px) {
  body.v2 .cky-consent-container { left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; max-width: none !important; }
  body.v2 .cky-consent-container .cky-consent-bar { border-radius: 0 !important; padding: 8px 14px 10px !important; border-width: 1px 0 0 !important; box-shadow: 0 -2px 10px rgba(17,22,20,.08) !important; }
  body.v2 .cky-consent-container .cky-title { display: none !important; }
  body.v2 .cky-consent-container .cky-notice-des, body.v2 .cky-consent-container .cky-notice-des p { font-size: 12.5px !important; line-height: 1.35 !important; }
  body.v2 .cky-consent-container .cky-notice-content-wrapper, body.v2 .cky-consent-container .cky-notice { padding: 0 !important; margin: 0 !important; }
  body.v2 .cky-consent-container .cky-notice-des { max-height: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; }
  body.v2 .cky-consent-container .cky-notice-btn-wrapper { margin-top: 6px !important; }
  body.v2 .cky-consent-container .cky-notice-btn-wrapper .cky-btn { padding: 6px 4px !important; font-size: 13.5px !important; }
  /* "Powered by CookieYes" line (paid plan) */
  body.v2 .cky-consent-container .cky-consent-bar > div:not([class]) { display: none !important; }
}
