/* R370 — Public Jobs PAGE-ONLY layout patch.
 * Deliberately keeps R364 renderer, controls, colors, fonts, links and job data.
 * Only changes usable content width, placement of existing filters and card flow.
 */
body.wlc-v7-jobs #page-jobs{--wlc-r370-gutter:clamp(16px,3.125vw,48px)}

/* Match the shared header's usable desktop width while preserving its own design. */
html body.wlc-v7-jobs #siteHeader.site-header .header-inner{
  width:calc(100% - 2 * var(--wlc-r370-gutter))!important;
  max-width:1600px!important;
}
/* Consistent wide alignment throughout this page; formerly locked to 1160px. */
body.wlc-v7-jobs #page-jobs .jobs-head .container,
body.wlc-v7-jobs #page-jobs .wlc-r364-scope-bar .wlx-container,
body.wlc-v7-jobs #page-jobs .wlx-hero .wlx-container,
body.wlc-v7-jobs #page-jobs .wlx-jobs-main>.wlx-container{
  box-sizing:border-box!important;
  width:calc(100% - 2 * var(--wlc-r370-gutter))!important;
  max-width:1600px!important;
  min-width:0!important;
  margin-inline:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}
body.wlc-v7-jobs #page-jobs .wlx-search-wrap,
body.wlc-v7-jobs #page-jobs .wlx-search-bar{max-width:none!important;width:100%!important}

/* Existing categories + all existing filter inputs move into the left column.
   Existing count, job list and pagination remain in the right column. */
body.wlc-v7-jobs #page-jobs .wlc-r370-directory{
  display:grid;
  grid-template-columns:clamp(250px,22vw,300px) minmax(0,1fr);
  align-items:start;
  gap:24px;
  width:100%;
  min-width:0;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar,
body.wlc-v7-jobs #page-jobs .wlc-r370-results{min-width:0}
body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar{
  position:sticky;
  top:104px;
  max-height:calc(100vh - 120px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlc-r360-categories{
  margin-bottom:14px!important;
  padding-bottom:14px!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlc-r360-category-heading{
  display:block!important;
  margin-bottom:10px!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlc-r360-category-heading span{
  display:block;
  margin-top:4px;
}
body.wlc-v7-jobs #page-jobs #wlxCategoryTabs.wlc-r975-category-tabs{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlx-filter-row,
body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlx-filter-row:has(.wlc-r364-country[hidden]){
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:stretch!important;
  width:100%!important;
  gap:9px!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlx-filter-row .wlx-filter,
body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlx-filter-row .wlc-r364-country,
body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar #wlxClearFilters{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlx-toolbar{
  width:100%!important;
  margin:0 0 13px!important;
  padding:0!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results #wlxJobsCount{
  margin:0!important;
}

/* One original R364 job card per horizontal row. Reflow its EXISTING fields
   into three information columns without touching renderer, URLs or strings. */
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlx-job-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:15px!important;
  align-items:start!important;
  min-width:0;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlx-job-card.wlc-r975-card.wlc-r364-card{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:auto auto auto auto auto auto auto;
  column-gap:20px;
  row-gap:7px;
  min-height:0!important;
  height:auto!important;
  padding:19px 20px!important;
  align-items:start;
  overflow-wrap:anywhere;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-top{
  grid-column:1/-1;
  grid-row:1;
  margin:0 0 1px!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlx-job-id{
  grid-column:1/-1;
  grid-row:2;
  margin:0!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlx-card-title{
  grid-column:1/-1;
  grid-row:3;
  min-height:0!important;
  margin:0 0 1px!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-meta,
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-info{
  display:contents!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-meta>span:first-child{
  grid-column:1/-1;
  grid-row:4;
  min-height:0!important;
  overflow:visible!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-divider{
  grid-column:1/-1;
  grid-row:5;
  width:100%;
  margin:5px 0 3px!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-info>div:first-child{
  grid-column:1;
  grid-row:6;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-meta>span:nth-child(2){
  grid-column:2;
  grid-row:6;
  display:block!important;
  overflow:visible!important;
  color:#203a60;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-meta>span:nth-child(2)::before{
  content:'Experience';
  display:block;
  color:#8293a9;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.055em;
  margin-bottom:5px;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-info>div:nth-child(2){
  grid-column:3;
  grid-row:6;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-type{
  grid-column:1/-1;
  grid-row:7;
  margin:3px 0 0!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-actions{
  grid-column:2/-1;
  grid-row:8;
  justify-self:end;
  display:grid!important;
  grid-template-columns:minmax(118px,150px) minmax(118px,150px)!important;
  gap:8px!important;
  width:auto!important;
  min-width:0;
  margin:5px 0 0!important;
  padding:0!important;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-zero{
  grid-column:1;
  grid-row:8;
  align-self:center;
  justify-content:flex-start;
  margin:5px 0 0!important;
  text-align:left;
}
body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r334-more-wrap{
  margin:19px 0 32px!important;
}

/* At tablet sizes show the SAME controls above results, without overflow. */
@media(max-width:940px){
  body.wlc-v7-jobs #page-jobs .wlc-r370-directory{grid-template-columns:minmax(0,1fr);gap:18px}
  body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar{position:static;max-height:none;overflow:visible}
  body.wlc-v7-jobs #page-jobs #wlxCategoryTabs.wlc-r975-category-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlx-filter-row,
  body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlx-filter-row:has(.wlc-r364-country[hidden]){grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:650px){
  body.wlc-v7-jobs #page-jobs #wlxCategoryTabs.wlc-r975-category-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlx-filter-row,
  body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlx-filter-row:has(.wlc-r364-country[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlx-job-card.wlc-r975-card.wlc-r364-card{
    grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:9px;padding:16px!important;
  }
  body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-info>div:first-child{grid-column:1;grid-row:6}
  body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-meta>span:nth-child(2){grid-column:2;grid-row:6}
  body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-info>div:nth-child(2){grid-column:1/-1;grid-row:7}
  body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-type{grid-column:1/-1;grid-row:8}
  body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-card-actions{grid-column:1/-1;grid-row:9;justify-self:stretch;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
  body.wlc-v7-jobs #page-jobs .wlc-r370-results .wlc-r364-card .wlc-r975-zero{grid-column:1/-1;grid-row:10;justify-content:center;text-align:center}
}
@media(max-width:380px){
  body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlx-filter-row,
  body.wlc-v7-jobs #page-jobs .wlc-r370-sidebar .wlx-filter-row:has(.wlc-r364-country[hidden]){grid-template-columns:minmax(0,1fr)!important}
}
