/* Local jobs-list additions only. Existing CSS, colors and other pages stay intact. */
.jobs-list-surface .jl-controls { margin: 0 0 14px; min-width: 0; }
.jobs-list-surface .jl-referral-fold { margin:8px 0 12px; border:1px solid var(--border); border-radius:8px; background:#fff; }
.jobs-list-surface .jl-referral-fold > summary { padding:10px 12px; min-height:40px; color:var(--navy); cursor:pointer; font-size:12px; }
.jobs-list-surface .jl-referral-fold .ctv-fixed-referral { margin:0; border:0; box-shadow:none; }
.jobs-list-surface .jl-industry-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--navy); font-size:13px; margin-bottom:7px; }
.jobs-list-surface .jl-industry-heading > strong { margin-right:auto; }
.jobs-list-surface .jl-sort-control { display:flex; flex:0 0 auto; flex-direction:row; align-items:center; gap:7px; font-size:12px; color:var(--muted); white-space:nowrap; }
.jobs-list-surface .jl-sort-control select { min-height:34px; padding:5px 8px; font-size:12px; }
.jobs-list-surface .jl-all-industries { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex:0 0 auto; background:#fff; border:1px solid var(--border); border-radius:8px; color:var(--navy); padding:7px 10px; min-height:36px; font-size:13px; line-height:20px; white-space:nowrap; }
.jobs-list-surface .jl-all-industries svg { display:block; flex:0 0 auto; }
.jobs-list-surface .jl-chip-strip { display:flex; flex-wrap:nowrap; gap:7px; overflow-x:auto; scrollbar-width:none; padding:0 0 6px; overscroll-behavior-x:contain; }
.jobs-list-surface .jl-chip-strip button { flex:0 0 auto; min-height:36px; padding:7px 12px; border:1px solid var(--border); border-radius:99px; background:#fff; color:var(--navy); font-size:13px; white-space:nowrap; }
.jobs-list-surface .jl-chip-strip button.selected, .jobs-list-surface .jl-view-switch button.selected { background:var(--navy); color:#fff; border-color:var(--navy); }
.jobs-list-surface .jl-chip-strip .jl-zero { color:var(--muted); }
.jobs-list-surface .jl-result-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:8px; color:var(--navy); font-size:13px; }
.jobs-list-surface .jl-result { min-width:0; }
.jobs-list-surface .jl-view-switch { flex:0 0 auto; display:flex; padding:3px; border:1px solid var(--border); border-radius:8px; background:#fff; }
.jobs-list-surface .jl-view-switch button { min-height:34px; min-width:58px; border:0; border-radius:5px; padding:5px 10px; color:var(--navy); background:transparent; font-size:13px; }
.jobs-list-surface #jobs.jl-table { display:block; border:1px solid var(--border); border-radius:10px; background:#fff; overflow:hidden; }
.jobs-list-surface .jl-table-head, .jobs-list-surface #jobs .jl-row { display:grid; grid-template-columns:26px minmax(150px,2fr) minmax(126px,1.4fr) minmax(65px,.8fr) minmax(75px,1fr) minmax(70px,.8fr) minmax(120px,1.4fr); column-gap:10px; align-items:center; }
.jobs-list-surface .jl-table-head { padding:12px; color:var(--navy); background:#f3f5f8; font-size:12px; font-weight:700; }
.jobs-list-surface .jl-table-head::before { content:''; }
.jobs-list-surface #jobs .jl-row { position:relative; grid-template-rows:auto; height:auto; min-height:88px; padding:14px 12px; border:0; border-radius:0; box-shadow:none; border-top:1px solid var(--border); background:#fff; font-size:13px; }
.jobs-list-surface #jobs .jl-row-toggle { grid-column:1; grid-row:1; width:26px; min-height:44px; border:0; background:transparent; color:var(--navy); font-size:25px; padding:0; }
.jobs-list-surface .jl-row-toggle[aria-expanded="true"] span { display:inline-block; transform:rotate(90deg); }
.jobs-list-surface #jobs .jl-name { grid-column:2; grid-row:1; min-width:0; }
.jobs-list-surface #jobs .jl-name h2 { padding:0; margin:0 0 5px; font-size:15px; line-height:1.4; color:var(--navy); overflow-wrap:anywhere; }
.jobs-list-surface .jl-name small { color:var(--muted); font-size:13px; line-height:1.4; display:block; overflow-wrap:anywhere; }
.jobs-list-surface #jobs .jl-row .jl-salary { grid-column:3; grid-row:1; position:static; display:flex; flex-wrap:wrap; align-items:baseline; justify-content:flex-start; justify-self:stretch; gap:3px; margin:0; padding:0; max-width:none; text-align:left; white-space:normal; }
.jobs-list-surface #jobs .jl-row .jl-salary strong { font-size:15px; line-height:1.4; }
.jobs-list-surface #jobs .jl-row .jl-salary .salary-currency { font-size:13px; }
.jobs-list-surface #jobs .jl-row .jl-salary .salary-unit { font-size:12px; }
.jobs-list-surface .jl-origin { grid-column:4; grid-row:1; justify-self:start; white-space:normal; text-align:center; font-size:10px; }
.jobs-list-surface .jl-industry { grid-column:5; grid-row:1; }
.jobs-list-surface .jl-count { grid-column:6; grid-row:1; }
.jobs-list-surface .jl-requirements { grid-column:7; grid-row:1; }
.jobs-list-surface .jl-industry, .jobs-list-surface .jl-count { color:var(--navy); overflow-wrap:anywhere; }
.jobs-list-surface .jl-count small { font-size:11px; }
.jobs-list-surface .jl-requirements { color:var(--navy); line-height:1.4; min-width:0; }
.jobs-list-surface .jl-requirements > span { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.jobs-list-surface .jl-policy-hint { display:block; margin-top:5px; font-size:12px; color:var(--muted); }
.jobs-list-surface .jl-more { grid-column:2 / -1; margin-top:12px; padding:12px; border:1px solid var(--border); border-radius:8px; background:#fff; }
.jobs-list-surface .jl-more[hidden] { display:none !important; }
.jobs-list-surface .jl-more dl { margin:0 0 12px; }
.jobs-list-surface .jl-more dl > div { display:grid; grid-template-columns:110px 1fr; gap:10px; padding:6px 0; border-bottom:1px solid var(--border); }
.jobs-list-surface .jl-more dt { color:var(--muted); }
.jobs-list-surface .jl-more dd { margin:0; color:var(--navy); white-space:pre-line; overflow-wrap:anywhere; }
.jobs-list-surface .jl-more .referral-policy { margin:12px 0; }
.jobs-list-surface .jl-more .card-actions { margin-top:10px; }
.jobs-list-surface .jl-more .cart-feedback:empty { display:none; }
.jl-industry-dialog { width:min(480px,calc(100% - 28px)); max-height:75dvh; padding:18px; border:1px solid var(--border); border-radius:16px; color:var(--navy); background:#fff; box-shadow:0 12px 40px #001e460d; }
.jl-industry-dialog::backdrop { background:#001a3a80; }
.jl-industry-dialog .jl-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.jl-industry-dialog h2 { margin:0; font-size:18px; }
.jl-industry-dialog .jl-dialog-heading button { border:0; background:transparent; color:var(--navy); min-width:44px; min-height:44px; font-size:26px; }
.jl-industry-dialog input { width:100%; margin:8px 0; min-height:44px; border:1px solid var(--border); border-radius:8px; padding:10px; }
.jl-industry-dialog .jl-industry-options { max-height:calc(75dvh - 170px); overflow-y:auto; overscroll-behavior:contain; }
.jl-industry-dialog .jl-industry-options button { display:flex; align-items:center; justify-content:space-between; width:100%; padding:10px 8px; min-height:44px; border:0; border-bottom:1px solid var(--border); background:#fff; color:var(--navy); text-align:left; gap:10px; }
.jl-industry-dialog .jl-industry-options button.selected { background:#d9ebff; }
.jl-industry-dialog .jl-industry-options .jl-zero { color:var(--muted); }
.jl-industry-dialog .jl-industry-options small { display:block; font-size:11px; margin-top:3px; color:var(--muted); }
.jl-industry-dialog .jl-industry-options strong { padding:3px 9px; border-radius:99px; background:#f3f5f8; }
.jl-industry-dialog footer { margin-top:12px; color:var(--muted); font-size:11px; }
@media(max-width:900px) {
  .jobs-list-surface .jl-table-head { display:none; }
  .jobs-list-surface #jobs .jl-row { grid-template-columns:22px minmax(120px,1.4fr) minmax(90px,1fr); grid-template-rows:auto auto auto; column-gap:8px; row-gap:7px; min-height:106px; padding:12px 10px; }
  .jobs-list-surface #jobs .jl-row-toggle { grid-row:1 / 4; align-self:start; width:22px; }
  .jobs-list-surface #jobs .jl-name { grid-column:2 / -1; grid-row:1; padding-right:70px; }
  .jobs-list-surface #jobs .jl-name h2 { font-size:15px; }
  .jobs-list-surface .jl-origin { grid-column:auto; grid-row:auto; position:absolute; right:10px; top:12px; max-width:68px; font-size:9px; }
  .jobs-list-surface #jobs .jl-row .jl-salary { grid-column:2; grid-row:2; }
  .jobs-list-surface #jobs .jl-row .jl-salary strong { font-size:15px; }
  .jobs-list-surface .jl-count { grid-column:3; grid-row:2; text-align:right; font-size:13px; }
  .jobs-list-surface .jl-industry { display:none; }
  .jobs-list-surface .jl-requirements { grid-column:2 / -1; grid-row:3; color:var(--muted); font-size:13px; }
  .jobs-list-surface .jl-requirements > span { -webkit-line-clamp:1; }
  .jobs-list-surface .jl-more { grid-column:1 / -1; margin-top:2px; padding:10px; font-size:12px; }
}
@media(max-width:600px) {
  .jobs-list-surface .page-intro { margin-bottom:10px; }
  .jobs-list-surface .page-intro h1 { font-size:21px; }
  .jobs-list-surface .page-intro > p { display:none; }
  .jobs-list-surface .mobile-filter-toggle { min-height:42px; padding:8px 12px; margin-bottom:10px; }
  .jobs-list-surface .mobile-filter-toggle small { display:none; }
  .jobs-list-surface .jl-industry-heading > strong { display:none; }
  .jobs-list-surface .jl-sort-control { font-size:0; }
  .jobs-list-surface .jl-sort-control select { font-size:12px; }
  .jobs-list-surface .list-toolbar { gap:8px; margin:0 0 8px; width:100%; }
  .jobs-list-surface .type-tabs { display:flex; flex-wrap:nowrap; width:100%; overflow-x:auto; padding:0 0 4px; scrollbar-width:none; }
  .jobs-list-surface .type-tabs button { flex:0 0 auto; min-height:36px; font-size:12px; white-space:nowrap; padding:7px 12px; }
  .jobs-list-surface .list-toolbar > label { align-self:flex-end; font-size:11px; }
  .jobs-list-surface .list-toolbar #sort { min-height:32px; padding:5px 8px; font-size:12px; }
  .jobs-list-surface .jl-controls { margin-bottom:9px; }
  .jobs-list-surface .jl-result-toolbar { font-size:12px; }
  .jobs-list-surface .jl-view-switch button { min-width:48px; }
  .jl-industry-dialog { width:100%; max-width:none; margin:auto 0 0; max-height:75dvh; border-radius:16px 16px 0 0; padding:14px 16px calc(14px + env(safe-area-inset-bottom)); }
  .jl-industry-dialog .jl-industry-options { max-height:calc(75dvh - 175px); }
}

/* Industry chips use a soft inset treatment, distinct from job-type pills. */
.jobs-list-surface .type-tabs::-webkit-scrollbar,
.jobs-list-surface .jl-chip-strip::-webkit-scrollbar { display:none; width:0; height:0; }
.jobs-list-surface .jl-chip-strip { padding:5px; border-radius:10px; background:#edf2f7; }
.jobs-list-surface .jl-chip-strip button { border-color:transparent; border-radius:7px; background:transparent; }
.jobs-list-surface .jl-chip-strip button strong { font-size:12px; font-weight:600; color:var(--muted); }
.jobs-list-surface .jl-chip-strip button.selected { background:#fff; color:var(--navy); border-color:var(--border); box-shadow:0 1px 3px #001e460d; }
.jobs-list-surface .jl-chip-strip button.selected strong { color:var(--navy); }
.jobs-list-surface #jobs .jl-row { font-size:14px; border-top-color:#e2e8f0; }
.jobs-list-surface #jobs .jl-row > .jl-industry,
.jobs-list-surface #jobs .jl-row > .jl-count,
.jobs-list-surface #jobs .jl-row > .jl-requirements { border-left:1px solid #e9edf3; padding-left:10px; }
@media(max-width:900px) {
  .jobs-list-surface #jobs .jl-row > .jl-count { padding-left:8px; }
  .jobs-list-surface #jobs .jl-row > .jl-requirements { border-left:0; padding-left:0; }
}

/* Origin labels retain text and use distinct colors in both list views. */
.jobs-list-surface #jobs .badge-origin[data-origin="japan"] { background:#eaf2ff; color:#174b89; border-color:#bdd3f0; }
.jobs-list-surface #jobs .badge-origin[data-origin="vietnam"] { background:#eaf6ee; color:#22623b; border-color:#bfdcc8; }
.jobs-list-surface #jobs .badge-origin[data-origin="both"] { background:#fff5dd; color:#825800; border-color:#f1d78e; }
.jobs-list-surface #jobs .badge-origin[data-origin="unknown"] { background:#f3f5f8; color:var(--muted); border-color:var(--border); }
.jobs-list-surface .jl-view-switch button { display:flex; align-items:center; justify-content:center; min-width:42px; padding:6px 10px; }
.jobs-list-surface .jl-view-switch svg { display:block; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

/* Applied filters stay visible when the mobile search form is folded. */
.jobs-list-surface .jl-active-filters { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:9px 10px; margin-bottom:10px; border:1px solid var(--border); border-radius:8px; background:#fff; color:var(--navy); font-size:12px; }
.jobs-list-surface .jl-active-filters button { min-height:32px; border:1px solid var(--border); border-radius:6px; padding:5px 8px; color:var(--navy); background:#edf2f7; font-size:12px; overflow-wrap:anywhere; }
.jobs-list-surface .jl-active-filters .jl-clear-filters { background:#fff; text-decoration:underline; }
.jobs-list-surface .jl-active-filters small { width:100%; color:var(--muted); font-size:12px; line-height:1.5; }

/* Pointer controls for overflowing strips; mobile remains touch-scrollable. */
.jobs-list-surface .jl-scroll-shell { position:relative; min-width:0; width:100%; }
.jobs-list-surface .jl-scroll-shell .type-tabs { display:flex; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; width:100%; min-width:0; }
.jobs-list-surface .jl-scroll-shell .type-tabs button { flex:0 0 auto; }
.jobs-list-surface .jl-scroll-arrow { display:none; }
@media(min-width:601px) {
  .jobs-list-surface .jl-scroll-shell.jl-scrollable { display:grid; grid-template-columns:30px minmax(0,1fr) 30px; gap:5px; align-items:center; }
  .jobs-list-surface .jl-scroll-shell.jl-scrollable > .type-tabs,
  .jobs-list-surface .jl-scroll-shell.jl-scrollable > .jl-chip-strip { grid-column:2; grid-row:1; min-width:0; }
  .jobs-list-surface .jl-scroll-shell.jl-scrollable .jl-scroll-arrow { display:flex; align-items:center; justify-content:center; width:30px; height:34px; padding:0; border:1px solid var(--border); border-radius:7px; background:#fff; color:var(--navy); cursor:pointer; }
  .jobs-list-surface .jl-scroll-prev { grid-column:1; grid-row:1; }
  .jobs-list-surface .jl-scroll-next { grid-column:3; grid-row:1; }
  .jobs-list-surface .jl-scroll-arrow:disabled { opacity:.35; cursor:default; }
  .jobs-list-surface .jl-scroll-arrow:not(:disabled):hover { background:#edf2f7; }
}

/* Scoped occupation picker: existing strip layout and dialog are retained. */
.jobs-list-surface .jl-parent-chip{display:inline-flex;flex:0 0 auto;align-items:stretch}
.jobs-list-surface .jl-parent-chip .jl-trade-toggle{padding:6px 9px;margin-left:2px}
.jobs-list-surface .jl-clear-trade{border:0;background:transparent;color:var(--navy);padding:4px 8px;cursor:pointer;font-size:18px}
