/* templates.css - Jobs In Each State template components (polish Batch 6a, Nov 10, 2026).
   Loaded on every page after site-brand.css (tokens, type, header/footer). Covers: the listing module (_JobListings),
   _AdSlot, _StatTiles, _StateTileMap, _RankingCards, _Faq, _SourceBlock, _NeighborStates and the home hub.
   Values: T1-T11 (SDES-review), R2 design/UX/ads sections 4-5, L4, L14, L15. Navy is the only UI colour; #142850 is a
   surface; #f7f5f0 + top rule is reserved for ads and the listing controls bar (R2D-5); cards and empty states are white.
   Selectors start with "html:root body" because site-brand.css sets global p/h/a rules at that weight (and with
   !important for type) so they beat the legacy theme; component rules must outrank them (Batch 4 :where() lesson).
   Minimum text 12px; tap targets 44px primary, 24px minimum; no horizontal scroll at 320px. */

/* ---------------------------------------------------------------- page frame for rebuilt templates (body.jx-tpl) */
/* Without legacy-theme.min.css (Bootstrap's normalize) the UA's 8px body margin would come back. */
html:root body { margin: 0; }
html:root body .jx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
html:root body .jx-wrap *, html:root body .erw-band *, html:root body .jl *, html:root body .jl *::before, html:root body .jl *::after { box-sizing: border-box; }
html:root body.jx-tpl main section { margin: 40px 0 0; }
html:root body.jx-tpl main section section { margin-top: 0; }
html:root body.jx-tpl main :is(h2, h3) { margin: 0 0 12px !important; }
html:root body main :is(.st, .sn, .rk, .fld, .fq, .src, .nb, .jl) p { margin: 0 0 12px; }
html:root body main :is(.st, .sn, .rk, .fld, .fq, .src, .nb, .jl) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
html:root body main :is(.st, .sn, .rk, .fld, .fq, .src, .nb, .jl) li { list-style: none; margin: 0; padding: 0; float: none; width: auto; line-height: 1.5; }
html:root body main :is(.st, .sn, .rk, .fld, .fq, .src, .nb, .jl) li::before { content: none; }
html:root body .jx-tpl-last { margin-bottom: 48px; }
html:root body.jx-tpl main > .jx-wrap:last-child { padding-bottom: 48px; }

/* ---------------------------------------------------------------- band (T2/T3): #142850 surface, H1 22/30 white, lede */
html:root body .erw-band { background: var(--erw-band); color: #fff; padding: 24px 0 28px; }
html:root body .erw-band :is(h1, h1 a) { color: #fff !important; margin: 0 0 10px !important; }
html:root body main .erw-band p { color: var(--erw-band-muted) !important; font-size: 17px !important; line-height: 1.55 !important; margin: 0 0 12px; max-width: 62ch; }
html:root body main .erw-band a:not(.jx-btn) { color: #fff !important; text-decoration: underline; }
html:root body .erw-band :focus-visible { outline-color: #fff; }
@media (min-width: 640px) { html:root body main .erw-band p { font-size: 18px !important; } }
@media (min-width: 768px) { html:root body .erw-band { padding: 36px 0 36px; } }

/* breadcrumbs, shared (R3, Views/Shared/_Crumbs.cshtml): same values as the former B6b .sp-crumbs / B6c .cx-crumbs */
html:root body .jx-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; line-height: 1.4; color: var(--erw-band-muted); }
html:root body .jx-crumbs li { display: inline-flex; align-items: center; margin: 0; padding: 0; }
html:root body .jx-crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--erw-band-soft, #b4bfd4); }
html:root body main .erw-band .jx-crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: #fff !important; text-decoration: underline; }
html:root body .jx-crumbs [aria-current] { color: var(--erw-band-muted); }

/* hub band: intro + white search card (T4: navy primary inside the card) */
html:root body .hub-band-in { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { html:root body .hub-band-in { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: center; } }
html:root body .hub-intro { text-align: left; }
html:root body .hub-search { background: #fff; border-radius: var(--erw-r); box-shadow: var(--erw-shadow); padding: 18px 16px 14px; display: grid; gap: 14px; color: var(--erw-ink); }
@media (min-width: 640px) { html:root body .hub-search { padding: 22px 22px 16px; } }
html:root body .hub-search :focus-visible { outline-color: var(--erw-focus) !important; }
html:root body main .erw-band .hub-search p.hub-hint { font-size: 14px !important; line-height: 1.45 !important; color: var(--erw-muted) !important; margin: 0; }

/* fields (T2): visible label above, 46px, 16px text, #7d8799 line, r8 */
html:root body .jx-field { display: grid; gap: 6px; min-width: 0; }
html:root body :is(.jx-field, .jl-field) label { display: block; margin: 0; font: 600 15px/1.4 var(--erw-font-body) !important; color: var(--erw-ink) !important; }
html:root body :is(.jx-input, .jx-select, .jl-input, .jl-select) {
    display: block; width: 100%; height: 46px; min-height: 46px; margin: 0; padding: 0 14px; font: 400 16px/1.3 var(--erw-font-body); color: var(--erw-ink);
    background: #fff; border: 1px solid var(--erw-input-line); border-radius: var(--erw-r-sm); box-shadow: none; -webkit-appearance: none; appearance: none; }
html:root body :is(.jx-select, .jl-select) { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314213d' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
html:root body :is(.jx-input, .jl-input)::-webkit-search-cancel-button { cursor: pointer; }
html:root body :is(.jx-input, .jx-select, .jl-input, .jl-select):focus { border-color: var(--erw-navy); }
html:root body.wp-jobhunt :is(.jx-input, .jx-select, .jl-input, .jl-select) { border: 1px solid var(--erw-input-line) !important; border-radius: var(--erw-r-sm) !important; height: 46px !important; }   /* legacy theme squares inputs with !important */

/* buttons: navy primary 46px; outline secondary */
html:root body :is(.jx-btn, .jl-go) {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; margin: 0; border: 0; border-radius: var(--erw-r-sm);
    background: var(--erw-navy); color: #fff !important; font: 600 16px/1.2 var(--erw-font-body); text-decoration: none !important; cursor: pointer; text-align: center; }
html:root body :is(.jx-btn, .jl-go):hover { background: var(--erw-brand-dk); }
html:root body :is(.jl-more, .jl-clear) {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; margin: 0; border: 1px solid var(--erw-navy); border-radius: var(--erw-r-sm);
    background: #fff; color: var(--erw-navy); font: 600 16px/1.2 var(--erw-font-body); cursor: pointer; }
html:root body :is(.jl-more, .jl-clear):hover { background: var(--erw-soft); }

/* ---------------------------------------------------------------- stat tiles (R2D-2): white tiles, dated, ▲/▼ words in ink */
html:root body .st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
html:root body .st-n1 { grid-template-columns: minmax(0, 1fr); }
html:root body .st-n3 > .st-tile:last-child { grid-column: 1 / -1; }
@media (min-width: 960px) {
    html:root body .st-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    html:root body .st-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    html:root body .st-n3 > .st-tile:last-child { grid-column: auto; }
}
html:root body .st-tile { background: #fff; border: 1px solid var(--erw-line); border-radius: var(--erw-r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-variant-numeric: tabular-nums; }
html:root body .st-tile dd { margin: 0; }
html:root body .st-l { font: 600 13px/1.4 var(--erw-font-body); color: var(--erw-muted); }
html:root body .st-v { font: 700 24px/1.2 var(--erw-font-body); color: var(--erw-ink); letter-spacing: -.01em; overflow-wrap: anywhere; }
@media (min-width: 640px) { html:root body .st-v { font-size: 28px; } }
html:root body .st-p { font-size: 13px; line-height: 1.45; color: var(--erw-muted); }
html:root body .st-c { font-size: 14px; line-height: 1.45; color: var(--erw-ink); margin-top: 6px !important; }
html:root body .st-cd { color: var(--erw-muted); }

/* ---------------------------------------------------------------- state nav: tile map (>=640 only) + A-Z list */
html:root body .tm { display: none; position: relative; margin: 0 0 20px; padding: 16px; background: #fff; border: 1px solid var(--erw-line); border-radius: var(--erw-r); }
@media (min-width: 640px) { html:root body .tm { display: block; } }
html:root body main .tm p.tm-t { font: 600 15px/1.4 var(--erw-font-body) !important; color: var(--erw-ink) !important; margin: 0 0 12px; }
html:root body .tm-tiles { max-width: 680px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); gap: 3px; }
html:root body main .tm .tm-tile { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 4px; text-decoration: none !important; line-height: 1.1; min-width: 0; overflow: hidden; }
html:root body .tm-tile b { font: 700 13px/1.1 var(--erw-font-body); }
html:root body .tm-tile .tm-v { font: 500 12px/1.1 var(--erw-font-body); margin-top: 2px; }
@media (max-width: 899px) { html:root body .tm-tile .tm-v { display: none; } }
html:root body main .tm a.tm-tile:hover { box-shadow: 0 0 0 2px var(--erw-ink); position: relative; z-index: 2; }
html:root body main .tm a.tm-tile:focus-visible { outline: 3px solid var(--erw-focus); outline-offset: 2px; position: relative; z-index: 3; }
html:root body main .tm :is(a, span):is(.tm-b0, .tm-b1, .tm-b2, .tm-nodata) { color: var(--erw-ink) !important; }
html:root body main .tm :is(a, span):is(.tm-b3, .tm-b4) { color: #fff !important; }
html:root body .tm-b0 { background: #e8edf7; } html:root body .tm-b1 { background: #c3cfe9; } html:root body .tm-b2 { background: #8ea6d6; } html:root body .tm-b3 { background: #4d6fb3; } html:root body .tm-b4 { background: #23408e; } html:root body .tm-nodata { background: #eef0f3; }
html:root body .tm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0 !important; font-size: 13px; color: var(--erw-muted); }
html:root body .tm-legend li { display: inline-flex; align-items: center; gap: 6px; }
html:root body .tm-sw { display: inline-block; width: 22px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(20,33,61,.12); }
/* Skip map: clip-hidden until focused (layout-independent), then a 44px target at the top of the map card */
html:root body main .tm a.tm-skip { position: absolute; left: 16px; top: 8px; z-index: 5; display: inline-flex; align-items: center; min-height: 44px; background: #fff; padding: 0 14px; border-radius: var(--erw-r-sm); box-shadow: var(--erw-shadow); font-weight: 600; }
html:root body main .tm a.tm-skip:not(:focus) { clip-path: inset(50%); clip: rect(0 0 0 0); width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; white-space: nowrap; }
.tm-ak{grid-area:1/1} .tm-al{grid-area:7/8} .tm-ar{grid-area:6/6} .tm-az{grid-area:6/3} .tm-ca{grid-area:5/2} .tm-co{grid-area:5/4} .tm-ct{grid-area:4/11} .tm-de{grid-area:5/11} .tm-fl{grid-area:8/10} .tm-ga{grid-area:7/9} .tm-hi{grid-area:8/1} .tm-ia{grid-area:4/6} .tm-id{grid-area:3/3} .tm-il{grid-area:3/7} .tm-in{grid-area:4/7} .tm-ks{grid-area:6/5} .tm-ky{grid-area:5/7} .tm-la{grid-area:7/6} .tm-ma{grid-area:3/12} .tm-md{grid-area:5/10} .tm-me{grid-area:1/12} .tm-mi{grid-area:3/9} .tm-mn{grid-area:3/6} .tm-mo{grid-area:5/6} .tm-ms{grid-area:7/7} .tm-mt{grid-area:3/4} .tm-nc{grid-area:6/8} .tm-nd{grid-area:3/5} .tm-ne{grid-area:5/5} .tm-nh{grid-area:2/12} .tm-nj{grid-area:4/10} .tm-nm{grid-area:6/4} .tm-nv{grid-area:4/3} .tm-ny{grid-area:3/10} .tm-oh{grid-area:4/8} .tm-ok{grid-area:7/5} .tm-or{grid-area:4/2} .tm-pa{grid-area:4/9} .tm-ri{grid-area:3/11} .tm-sc{grid-area:6/9} .tm-sd{grid-area:4/5} .tm-tn{grid-area:6/7} .tm-tx{grid-area:8/5} .tm-ut{grid-area:5/3} .tm-va{grid-area:5/9} .tm-vt{grid-area:2/11} .tm-wa{grid-area:3/2} .tm-wi{grid-area:3/8} .tm-wv{grid-area:5/8} .tm-wy{grid-area:4/4}

html:root body .sn-az-h { font-size: 18px !important; }
html:root body .sn-az-h:focus { outline: none; }
html:root body main ul.az { columns: 136px 4; column-gap: 16px; margin: 0; }
html:root body main ul.az li { break-inside: avoid; border-bottom: 1px solid var(--erw-line2); }
html:root body main ul.az :is(a, .az-x) { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 4px 0; color: var(--erw-ink) !important; text-decoration: none !important; }
html:root body main ul.az a:hover .az-n { text-decoration: underline; color: var(--erw-navy); }
html:root body .az-n { font: 600 16px/1.3 var(--erw-font-body); }
html:root body .az-v { font-size: 13px; line-height: 1.3; color: var(--erw-muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- ranking cards: rank, bar, ▲/▼ + word (T11), no stars */
html:root body .rk-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { html:root body .rk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html:root body .rk-card { background: #fff; border: 1px solid var(--erw-line); border-radius: var(--erw-r); box-shadow: var(--erw-shadow); padding: 16px; min-width: 0; }
@media (min-width: 640px) { html:root body .rk-card { padding: 18px 20px; } }
html:root body .rk-t { font-size: 18px !important; margin: 0 0 2px !important; }
html:root body main .rk p.rk-s, html:root body main .rk p.rk-ref, html:root body main .rk p.rk-intro { font-size: 14px !important; line-height: 1.45 !important; color: var(--erw-muted) !important; margin: 0 0 10px; }
html:root body main .rk p.rk-ref { margin: 10px 0 0; }
html:root body .rk-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--erw-line2); font-variant-numeric: tabular-nums; }
html:root body .rk-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--erw-soft); color: var(--erw-navy); font: 700 14px/1 var(--erw-font-body); }
html:root body .rk-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; }
html:root body main .rk .rk-name { font: 600 16px/1.35 var(--erw-font-body); color: var(--erw-ink) !important; text-decoration: none !important; min-height: 24px; display: inline-block; }
html:root body main .rk a.rk-name:hover { text-decoration: underline !important; color: var(--erw-navy) !important; }
html:root body .rk-v { font: 700 16px/1.35 var(--erw-font-body); color: var(--erw-ink); text-align: right; }
html:root body .rk-p { font-weight: 400; font-size: 13px; color: var(--erw-muted); }
html:root body .rk-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--erw-line2); overflow: hidden; margin: 4px 0 2px; }
html:root body .rk-bar i { display: block; height: 100%; background: var(--erw-navy); border-radius: 3px; }
html:root body .rk-w0 { width: 0%; } html:root body .rk-w5 { width: 5%; } html:root body .rk-w10 { width: 10%; } html:root body .rk-w15 { width: 15%; } html:root body .rk-w20 { width: 20%; } html:root body .rk-w25 { width: 25%; } html:root body .rk-w30 { width: 30%; } html:root body .rk-w35 { width: 35%; } html:root body .rk-w40 { width: 40%; } html:root body .rk-w45 { width: 45%; } html:root body .rk-w50 { width: 50%; } html:root body .rk-w55 { width: 55%; } html:root body .rk-w60 { width: 60%; } html:root body .rk-w65 { width: 65%; } html:root body .rk-w70 { width: 70%; } html:root body .rk-w75 { width: 75%; } html:root body .rk-w80 { width: 80%; } html:root body .rk-w85 { width: 85%; } html:root body .rk-w90 { width: 90%; } html:root body .rk-w95 { width: 95%; } html:root body .rk-w100 { width: 100%; }
html:root body .rk-c { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; color: var(--erw-ink); }

/* ---------------------------------------------------------------- ad slot (L4, R2 section 5, SDESR-ADD-3): 12px label, 280 reserved */
/* >= 90px from any link at every width: 72px + the ~23px label above the box, 90px below (verify B6c-4) */
html:root body .erw-ad { display: grid; gap: 6px; justify-items: stretch; margin: 72px 0 90px; }
html:root body .erw-ad-label { font: 600 12px/1.4 var(--erw-font-body); letter-spacing: 0; text-transform: none; color: var(--erw-muted); }
html:root body .erw-ad-box { width: 100%; background: var(--erw-surface); border-top: 1px solid var(--erw-line); overflow: hidden; }
/* Reserved boxes never grow (CLS): fixed height = 1px top rule + the CSS-sized ins (no auto/full-width-responsive). */
html:root body .erw-ad-box-280 { height: 281px; min-height: 0; }
html:root body .erw-ad-box-280 ins { display: block; width: 100%; height: 280px; }
html:root body .erw-ad-box-600 { height: 601px; min-height: 0; width: 300px; }
html:root body .erw-ad-box-600 ins { display: block; width: 300px; height: 600px; }
html:root body .erw-ad-rail { display: none; margin: 0; }
@media (min-width: 1200px) { html:root body .erw-ad-rail { display: grid; position: sticky; top: 24px; } }
@media (max-width: 1023px) { html:root body .erw-ad-desk { display: none; } }
@media (min-width: 1024px) { html:root body .erw-ad-mob { display: none; } }
/* bottom anchor clearance only when the AdSense loader renders (R2D-4, L15) */
@media (max-width: 1023px) {
    html.has-anchor { scroll-padding-bottom: 120px; }
    html.has-anchor body { padding-bottom: 120px; }
}

/* ---------------------------------------------------------------- field cards (home) */
html:root body main p.fld-note { font-size: 14px !important; line-height: 1.5 !important; color: var(--erw-muted) !important; }
html:root body .fld-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
html:root body main a.fld-card { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; height: 100%; padding: 12px 16px; background: #fff; border: 1px solid var(--erw-line); border-radius: var(--erw-r); text-decoration: none !important; color: var(--erw-ink) !important; }
html:root body main a.fld-card:hover { border-color: var(--erw-navy); }
html:root body main a.fld-card:hover .fld-n { text-decoration: underline; }
html:root body .fld-n { font: 600 16px/1.35 var(--erw-font-body); color: var(--erw-navy); }
html:root body .fld-p { font-size: 13px; line-height: 1.45; color: var(--erw-muted); }
html:root body .fld-p b { color: var(--erw-ink); font-weight: 600; }

/* ---------------------------------------------------------------- FAQ (details) */
html:root body .fq-list { border: 1px solid var(--erw-line); border-radius: var(--erw-r); background: #fff; overflow: hidden; }
html:root body .fq-item { border-top: 1px solid var(--erw-line2); padding: 0 16px; }
html:root body .fq-item:first-child { border-top: 0; }
html:root body .fq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; }
html:root body .fq-item summary::-webkit-details-marker { display: none; }
html:root body .fq-item summary::after { content: "+"; margin-left: auto; flex: 0 0 auto; font: 400 24px/1 var(--erw-font-body); color: var(--erw-navy); }
html:root body .fq-item[open] summary::after { content: "\2013"; }
html:root body main .fq .fq-q { font: 600 16px/1.4 var(--erw-font-body); color: var(--erw-ink); }
html:root body main .fq p.fq-a { margin: 0 0 16px; max-width: 72ch; }

/* ---------------------------------------------------------------- source block (SDES-17): muted 14px, top hairline */
html:root body .src { border-top: 1px solid var(--erw-line); padding-top: 16px; color: var(--erw-muted); }
html:root body .src-h { font: 600 16px/1.4 var(--erw-font-body) !important; color: var(--erw-ink) !important; margin: 0 0 8px !important; }
html:root body main .src li, html:root body main .src p { font-size: 14px !important; line-height: 1.55 !important; color: var(--erw-muted) !important; margin: 0 0 6px; }
html:root body main .src a { color: var(--erw-navy) !important; text-decoration: underline; }
html:root body .src-period { display: inline; }
html:root body main .src p.src-more a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- neighbor states: link chips (T8) */
html:root body main p.nb-note { font-size: 14px !important; color: var(--erw-muted) !important; }
html:root body .nb-list { display: flex; flex-wrap: wrap; gap: 8px; }
html:root body main .nb-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--erw-line); border-radius: var(--erw-r-pill); background: #fff; color: var(--erw-ink) !important; font: 600 15px/1.2 var(--erw-font-body); text-decoration: none !important; }
html:root body main a.nb-chip:hover { border-color: var(--erw-navy); color: var(--erw-navy) !important; }
html:root body .nb-v { font-weight: 400; font-size: 13px; color: var(--erw-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 639px), (pointer: coarse) { html:root body main .nb-chip { min-height: 44px; } }

/* ================================================================ listing module (R2 section 4, T6, L4, L14) */
html:root body .jl { margin: 32px 0 0; }
html:root body .jl > h2 { margin: 0 0 12px !important; }
/* controls bar: #f7f5f0, r12 (R2D-1); the only keyword field on the page */
html:root body .jl-controls { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); padding: 14px; margin: 0 0 12px; background: var(--erw-surface); border: 1px solid var(--erw-line); border-radius: var(--erw-r); }
html:root body .jl-field { display: grid; gap: 6px; min-width: 0; }
html:root body .jl-go { width: 100%; }
@media (min-width: 640px) {
    html:root body .jl-controls { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
    html:root body .jl-go { width: auto; }
    html:root body .jl-sortf { grid-column: 1 / -1; max-width: 260px; }
}
@media (min-width: 960px) {
    html:root body .jl-controls { grid-template-columns: minmax(0, 1fr) auto 220px; }
    html:root body .jl-sortf { grid-column: auto; max-width: none; }
}
html:root body main .jl p.jl-status { font-size: 14px !important; line-height: 1.5 !important; color: var(--erw-muted) !important; margin: 0 0 12px; min-height: 21px; }
html:root body main .jl p.jl-few { font-size: 15px !important; margin: -4px 0 12px; }
html:root body main .jl :is(.jl-few, .jl-empty) a { color: var(--erw-navy) !important; text-decoration: underline; }

/* page-supplied blocks: ChipsHtml (between controls and status) and InsertHtml (phones only, after card N) */
html:root body .jl-slot { margin: 0 0 12px; }
/* InsertHtml sits between ol#jobs and ol#jobs-m (split-list), on the panel surface so it never reads as a job card */
html:root body .jl-insert { margin: 12px 0; padding: 14px; background: var(--erw-surface); border: 1px solid var(--erw-line); border-radius: var(--erw-r); }
html:root body .jl-insert > section { margin: 0 !important; }
html:root body .jl-insert .st-h { font-size: 18px !important; margin: 0 0 10px !important; }
@media (min-width: 960px) { html:root body .jl-insert { display: none !important; } }

/* list + cards */
html:root body .jl-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
html:root body .jl-list[hidden], html:root body .jl-item[hidden], html:root body .jl [hidden] { display: none !important; }
html:root body .jl-card { position: relative; background: #fff; border: 1px solid var(--erw-line); border-radius: var(--erw-r); box-shadow: var(--erw-shadow); padding: 16px; min-width: 0; }
@media (min-width: 640px) { html:root body .jl-card { padding: 18px 20px; } }
html:root body .jl-card:hover { border-color: #c9d1de; }
html:root body main .jl h3.jl-t, html:root body main .jl h3.jl-t a { font: 600 17px/1.35 var(--erw-font-head) !important; color: var(--erw-ink) !important; letter-spacing: -.005em !important; margin: 0 0 4px !important; text-decoration: none !important; }
html:root body main .jl h3.jl-t a::after { content: ""; position: absolute; inset: 0; border-radius: var(--erw-r); z-index: 1; }
html:root body main .jl h3.jl-t a:visited { color: var(--erw-visited) !important; }
html:root body main .jl .jl-card:hover h3.jl-t a, html:root body main .jl h3.jl-t a:focus-visible { text-decoration: underline !important; text-underline-offset: 3px; }
html:root body main .jl h3.jl-t a:focus-visible { outline: none; }
html:root body main .jl .jl-card:focus-within { outline: 3px solid var(--erw-focus); outline-offset: 2px; }
@supports selector(:has(a)) {
    html:root body main .jl .jl-card:focus-within { outline: none; }
    html:root body main .jl .jl-card:has(a:focus-visible) { outline: 3px solid var(--erw-focus); outline-offset: 2px; }
}
@media (min-width: 640px) { html:root body main .jl h3.jl-t a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
html:root body main .jl p.jl-meta { font-size: 14px !important; line-height: 1.5 !important; color: var(--erw-muted) !important; margin: 0 0 6px; }
html:root body .jl-meta > * + *::before { content: "\20\b7\20"; }
html:root body main .jl p.jl-pay { font: 600 15px/1.45 var(--erw-font-body) !important; color: var(--erw-ink) !important; margin: 0 0 6px; }
html:root body main .jl p.jl-snip { font-size: 15px !important; line-height: 1.55 !important; color: var(--erw-ink2) !important; margin: 0 0 10px; overflow-wrap: anywhere; }
@media (min-width: 960px) { html:root body main .jl p.jl-snip { max-width: 75ch; } }
html:root body .jl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html:root body .jl-via { font-size: 13px; line-height: 1.4; color: var(--erw-muted); }
html:root body .jl-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border: 1px solid var(--erw-navy); border-radius: var(--erw-r-pill); background: #fff; color: var(--erw-navy); font: 600 14px/1 var(--erw-font-body); white-space: nowrap; }
html:root body .jl-card:hover .jl-pill { background: var(--erw-soft); }
@media (min-width: 960px) {
    html:root body .jl-card { display: grid; grid-template-columns: minmax(0, 1fr) 200px; column-gap: 24px; align-items: start; }
    html:root body .jl-card > :not(.jl-pay):not(.jl-foot) { grid-column: 1; }
    html:root body main .jl .jl-card > p.jl-pay { grid-column: 2; grid-row: 1 / span 2; text-align: right; margin: 2px 0 0; }
    html:root body .jl-card > .jl-foot { grid-column: 1 / -1; }
}

/* in-list ad (L4 + ADS-3 build rule): 150px from the reserved box to the nearest card border on both sides */
html:root body .jl-ad { margin: 100px 0; padding: 30px 0 50px; }   /* 100 + 30 + label (~23) >= 150 above; 50 + 100 below */
html:root body .jl-ad .erw-ad { margin: 0; }
html:root body .jl-ad[hidden] { display: none !important; }

/* show all + empty states (R2D-5: card surface, not the ad surface) */
html:root body .jl-more { width: 100%; margin-top: 16px; }
@media (min-width: 640px) { html:root body .jl-more { width: auto; } }
html:root body .jl-empty { background: #fff; border: 1px solid var(--erw-line); border-radius: var(--erw-r); padding: 18px 20px; margin: 0 0 12px; }
html:root body main .jl p.jl-empty-t { font: 600 17px/1.4 var(--erw-font-head) !important; color: var(--erw-ink) !important; margin: 0 0 6px; }
html:root body main .jl .jl-empty li a { display: inline-flex; align-items: center; min-height: 44px; }
html:root body .jl-empty .jl-clear { margin-right: 12px; }

/* /search/ pages 1-4 */
html:root body .jl-pages ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; }
html:root body main .jl-pages a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--erw-line); border-radius: var(--erw-r-sm); color: var(--erw-navy) !important; text-decoration: none !important; font-weight: 600; }
html:root body main .jl-pages a[aria-current] { background: var(--erw-navy); border-color: var(--erw-navy); color: #fff !important; }

/* legacy templates that still render the new module (until B6b/B6c rebuild them): neutralise the theme's list,
   heading and button rules inside .jl only */
html:root body.wp-jobhunt .jl :is(ol, ul) { margin: 0; padding: 0; }
html:root body.wp-jobhunt .jl button { text-transform: none; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) { html:root body .jl * { transition: none !important; animation: none !important; } }
