/* jobs.css — public job listing + cards. */
.wg-jobs { max-width: 1200px; margin: 0 auto; padding: 16px; }

/* ── Hero ────────────────────────────────────────────────────────────────
   Inline-SVG skyline + figures behind the title. `isolation: isolate` keeps
   the art's stacking to this box, and the art is aria-hidden + pointer-events
   none so it is invisible to assistive tech and never eats a click.        */
.wg-jobs-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--wg-border-soft, #e6efe9);
  border-radius: var(--wg-radius-card, 14px);
  background: linear-gradient(180deg, var(--wg-tint, #f4fbf7) 0%, #fff 72%);
  padding: 26px 24px; min-height: 158px;
  display: flex; align-items: center; margin-bottom: 18px;
}
.wg-jobs-hero-art { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.wg-jobs-hero-in {
  position: relative; z-index: 2; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.wg-jobs-hero-text { min-width: 0; }
.wg-jobs-hero h1 { margin: 0 0 5px; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; }
.wg-jobs-hero .wg-jobs-intro { margin: 0; max-width: 34ch; }
.wg-jobs-hero .wg-btn { width: auto; white-space: nowrap; }

/* Narrow: the art becomes a band along the bottom and the hero gains the
   padding to clear it — full-bleed art behind stacked text is unreadable. */
@media (max-width: 620px) {
  .wg-jobs-hero { padding: 20px 16px 92px; min-height: 0; }
  .wg-jobs-hero-art { inset: auto 0 0 0; height: 88px; }
  .wg-jobs-hero-in { flex-direction: column; align-items: flex-start; }
}
.wg-jobs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.wg-jobs-head h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.wg-jobs-head .wg-btn { width: auto; }
.wg-jobs-intro { color: #5b6470; margin: 6px 0 16px; }

/* ── Filter-rail layout ──────────────────────────────────────────────────
   Desktop: a sticky filter column beside the results, so the active filters
   and their counts stay visible while scrolling. Narrow: the SAME markup
   becomes a slide-over sheet, opened by the Filters button — one set of
   controls, one set of ids, no duplicated DOM to keep in sync.             */
.wg-jobs-layout { display: block; }
@media (min-width: 900px) {
  .wg-jobs-layout { display: grid; grid-template-columns: 254px minmax(0, 1fr); gap: 20px; align-items: start; }
}
.wg-jobs-results { min-width: 0; }

.wg-jobs-rail {
  display: flex; flex-direction: column; gap: 16px;
  background: #fff; border: 1px solid var(--wg-border-soft, #e6efe9);
  border-radius: var(--wg-radius-card, 14px); padding: 14px;
  box-shadow: var(--wg-shadow-card);
}
/* The sheet's own title + close button. Declared BEFORE the desktop media
   query that hides it — same specificity, so whichever comes last wins, and
   a base rule sitting after the query would keep it visible on desktop. */
.wg-rail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wg-rail-toptitle { font-weight: 800; font-size: 1.05rem; }
@media (min-width: 900px) {
  .wg-jobs-rail { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
  .wg-rail-top { display: none; }
}
.wg-rail-x { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--wg-muted); cursor: pointer; padding: 0 4px; }
.wg-rail-x:hover { color: var(--wg-text); }

.wg-rail-sec { display: flex; flex-direction: column; gap: 8px; }
.wg-rail-h { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wg-muted); font-weight: 800; }
.wg-rail-sec select { width: 100%; }
.wg-rail-sec .wg-jobs-search { gap: 6px; }
.wg-rail-sec .wg-jobs-nearme { width: 100%; justify-content: center; }

.wg-rail-opts { display: flex; flex-direction: column; gap: 2px; }
.wg-rail-opt { display: flex; align-items: center; gap: 8px; font-size: .86rem; cursor: pointer; padding: 4px 2px; border-radius: 8px; }
.wg-rail-opt:hover { background: var(--wg-tint, #f4fbf7); }
.wg-rail-opt input { accent-color: var(--wg-color); flex: none; }
.wg-rail-optlabel { flex: 1; min-width: 0; }
.wg-rail-optn { flex: none; font-size: .78rem; color: var(--wg-muted); font-variant-numeric: tabular-nums; }
.wg-rail-opt[hidden] { display: none; }

.wg-rail-link { background: none; border: 0; padding: 2px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--wg-color-dark, #0a7a3d); cursor: pointer; text-align: left; }
.wg-rail-link:hover { text-decoration: underline; }
.wg-rail-clear { border-top: 1px solid var(--wg-border); padding-top: 12px; }
.wg-rail-clear[hidden] { display: none; }

/* Mobile: rail as a slide-over sheet */
.wg-jobs-filterbtn { display: none; }
.wg-rail-scrim { display: none; }
@media (max-width: 899px) {
  .wg-jobs-filterbtn {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; margin-bottom: 12px;
  }
  .wg-jobs-filtern { background: var(--wg-color); color: #fff; font-size: .72rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 6px; }
  .wg-jobs-filtern[hidden] { display: none; }
  .wg-jobs-rail {
    position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(86vw, 330px);
    border-radius: 0 16px 16px 0; overflow-y: auto; margin: 0;
    transform: translateX(-102%); transition: transform .26s var(--wg-ease-out, ease);
    box-shadow: var(--wg-shadow-pop, 0 10px 34px rgba(16,24,40,.16));
  }
  .wg-jobs-rail.is-open { transform: translateX(0); }
  .wg-rail-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(12,20,15,.42); border: 0; }
  .wg-rail-scrim[hidden] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wg-jobs-rail { transition: none; } }

/* Result header: count + sort */
.wg-jobs-countrow { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.wg-jobs-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--wg-muted); }
.wg-jobs-sort select { padding: 7px 30px 7px 10px; font-size: .84rem; }

.wg-jobs-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.wg-jobs-search { display: flex; gap: 8px; }
.wg-jobs-search input {
  flex: 1; min-width: 0; padding: 10px 12px; font: inherit; color: inherit;
  border: 1px solid var(--wg-border); border-radius: var(--wg-radius); background: #fff;
}
.wg-jobs-search .wg-btn { flex: none; width: auto; white-space: nowrap; padding: 10px 16px; }
.wg-jobs-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wg-jobs-filter-row select {
  flex: 1 1 30%; min-width: 120px; padding: 10px 34px 10px 12px; font: inherit; font-weight: 500; color: inherit;
  border: 1px solid var(--wg-border); border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23889' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16,24,32,0.04);
}
.wg-jobs-filter-row select:hover { border-color: var(--wg-color); }
.wg-jobs-search input { border-radius: 999px; padding-left: 16px; }
.wg-jobs-search .wg-btn { border-radius: 999px; }
.wg-jobs-search input:focus, .wg-jobs-filter-row select:focus {
  outline: none; border-color: var(--wg-color); box-shadow: 0 0 0 3px rgba(14, 175, 76, 0.15);
}
.wg-jobs-toggles { display: flex; flex-wrap: wrap; gap: 16px; font-size: .9rem; padding: 2px 2px 0; }
.wg-jobs-toggles .wg-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.wg-jobs-toggles input { accent-color: var(--wg-color); }
.wg-jobs-mylinks { font-size: .9rem; margin: 0 0 16px; color: var(--wg-muted); }
.wg-jobs-mylinks a { color: var(--wg-color-dark, #0a7a3d); font-weight: 600; text-decoration: none; }

/* Featured Opportunities (admin-curated carousel) */
.wg-featured { background: #eef8f1; border: 1px solid #dcefe3; border-radius: 16px; padding: 16px; margin-bottom: 18px; }
.wg-featured[hidden] { display: none; }
.wg-featured-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wg-featured-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--wg-color); }
.wg-featured-ico .wg-ico { width: 20px; height: 20px; }
.wg-featured-titles h2 { margin: 0; font-size: 1.05rem; color: var(--wg-text); }
.wg-featured-titles p { margin: 2px 0 0; font-size: 0.82rem; color: var(--wg-muted); }
.wg-featured-list { display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
/* Featured card — "clean typographic": green top accent, initials logo, meta line. */
/* min-width:0 is load-bearing: a flex item defaults to min-width:auto, so the
   nowrap meta line below would set a huge min-content width and stretch the
   card past its 190px basis (a long location list did exactly that). With 0,
   the basis holds and .wg-fjob-meta ellipsizes as intended. */
.wg-fjob { flex: 0 0 190px; min-width: 0; scroll-snap-align: start; display: block; box-sizing: border-box; background: #fff; border: 1px solid var(--wg-border); border-top: 3px solid var(--wg-color); border-radius: 12px; padding: 12px; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: box-shadow .18s ease, transform .18s var(--wg-ease-spring, ease); }
.wg-fjob:hover { box-shadow: 0 5px 16px rgba(0,0,0,0.10); transform: translateY(-2px); }
.wg-fjob:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) { .wg-fjob { transition: none; } .wg-fjob:hover, .wg-fjob:active { transform: none; } }
.wg-fjob-pill { display: inline-block; font-size: 0.66rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eafaf0; color: #0b7a38; }

/* Admin-only feature / unfeature pill. Amber = "admin control", distinct from
   member-facing chips. On a Featured carousel card it floats at the top-right. */
.wg-job-feat {
  font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid #e6c15a; background: #fff8e6; color: #8a5a00; white-space: nowrap; line-height: 1.2;
}
.wg-job-feat:hover { background: #fdefc4; }
/* Already featured → the action is REMOVE, so it reads as a removal control. */
.wg-job-feat.is-on { border-color: #e3adad; background: #fdeded; color: #a03434; }
.wg-job-feat.is-on:hover { background: #fbdcdc; }
.wg-job-feat:disabled { opacity: .55; cursor: default; }
.wg-fjob { position: relative; }
.wg-fjob .wg-job-feat { position: absolute; top: 8px; right: 8px; z-index: 2; }
.wg-fjob-title { margin: 8px 0 0; font-size: 0.95rem; font-weight: 600; line-height: 1.3; color: var(--wg-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wg-fjob-emp { display: flex; align-items: center; gap: 7px; margin-top: 9px; min-width: 0; }
.wg-fjob-logo { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #eafaf0; border: 1px solid var(--wg-border); display: inline-flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700; color: var(--wg-color); }
.wg-fjob-empname { font-size: 0.8rem; color: var(--wg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-fjob-meta { font-size: 0.74rem; color: var(--wg-muted); margin-top: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .wg-featured { padding: 12px; }
  .wg-fjob { flex-basis: 170px; }
}
.wg-jobs-count { margin: 2px 2px 10px; font-size: 0.85rem; color: var(--wg-muted); }
.wg-jobs-count[hidden] { display: none; }

/* Results are single-column ROWS next to the rail: the width buys room for
   the facts people actually decide on (location, type, pay, Korean level)
   instead of a truncated title in a narrow card. Saved jobs reuses this
   list without a rail, so it must stand alone too. */
.wg-jobs-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) and (max-width: 899px) { .wg-jobs-list { grid-template-columns: 1fr 1fr; } }

/* Row card */
.wg-job-row .wg-job-card-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 14px 16px; }
.wg-job-row-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wg-job-row-main h3 { margin: 0; font-size: 1rem; line-height: 1.32; font-weight: 700; letter-spacing: -.01em; }
.wg-job-row-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.wg-job-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--wg-muted); margin-top: 1px; }
.wg-job-fact { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.wg-job-fact b { color: var(--wg-text); font-weight: 600; }
@media (max-width: 619px) {
  .wg-job-row .wg-job-card-link { grid-template-columns: minmax(0, 1fr); padding: 12px 13px; }
  .wg-job-row-side { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
}
@media (min-width: 620px) and (max-width: 899px) {
  .wg-job-row .wg-job-card-link { grid-template-columns: minmax(0, 1fr); }
  .wg-job-row-side { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
}

.wg-job-card { border: 1px solid var(--wg-border-soft, #e6efe9); border-radius: var(--wg-radius-card, 14px); background: #fff; box-shadow: var(--wg-shadow-card); transition: box-shadow .2s ease, transform .2s var(--wg-ease-spring, ease), border-color .16s ease; animation: wg-page-in .3s var(--wg-ease-out, ease) both; }
.wg-job-card:hover { box-shadow: var(--wg-shadow-hover); transform: translateY(-2px); border-color: #d8e6dd; }
.wg-job-card:active { transform: scale(0.99); }
@media (prefers-reduced-motion: reduce) { .wg-job-card { animation: none; transition: none; } .wg-job-card:hover, .wg-job-card:active { transform: none; } }
.wg-job-card-link { display: block; padding: 11px 12px; color: inherit; text-decoration: none; }
.wg-job-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wg-job-card-head h3 { margin: 0; font-size: 0.92rem; line-height: 1.3; }
.wg-job-card-emp { color: #44505c; font-size: .8rem; margin: 3px 0 0; }
.wg-job-card-meta { color: #5b6470; font-size: .78rem; margin: 6px 0 0; }

.wg-job-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.wg-job-chip { font-size: .66rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: #eef1f4; color: #44505c; }
.wg-job-chip-good { background: #e7f7ee; color: #0a7a3d; }
.wg-job-chip-cat { background: #e8eefc; color: #2b54b8; }
.wg-job-deadline { font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: #fff4e5; color: #9a6a00; }
.wg-jobs-morefilters { margin-top: 10px; }
.wg-jobs-morefilters > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #eef8f1; border: 1px solid #dcefe3; border-radius: 12px; padding: 12px 14px; font-size: .9rem; font-weight: 600; color: #0b7a38; }
.wg-jobs-morefilters > summary::-webkit-details-marker { display: none; }
.wg-mf-label { display: inline-flex; align-items: center; gap: 8px; }
.wg-mf-caret { transition: transform .15s; color: #0b7a38; }
.wg-jobs-morefilters[open] .wg-mf-caret { transform: rotate(180deg); }
.wg-mf-body { padding: 12px 4px 2px; }
.wg-mf-body .wg-field-label { display: block; font-size: .82rem; color: var(--wg-muted); margin-bottom: 8px; }
.wg-mf-body .wg-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }

.wg-job-save { border: 0; background: none; cursor: pointer; font-size: 1.25rem; line-height: 1; color: #c2c8d0; padding: 0 2px; transition: color .16s ease, transform .18s var(--wg-ease-spring, ease); }
.wg-job-save:hover { color: #f0a500; transform: scale(1.12); }
.wg-job-save:active { transform: scale(0.85); }
.wg-job-save.is-on { color: #f0a500; animation: wg-save-pop .28s var(--wg-ease-spring, ease); }
@keyframes wg-save-pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .wg-job-save { transition: none; animation: none; } .wg-job-save:hover, .wg-job-save:active { transform: none; } .wg-job-save.is-on { animation: none; } }
.wg-job-chip.wg-job-views { background: #eef1f4; color: #5b6470; display: inline-flex; align-items: center; gap: 4px; }

/* Location filter row ("Near me": province select + GPS button) */
.wg-jobs-locrow { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.wg-jobs-locrow select { flex: 1 1 auto; min-width: 0; }
.wg-jobs-locrow .wg-jobs-nearme { width: auto; white-space: nowrap; flex: 0 0 auto; }

/* ── Split view: list + detail pane (2026-07-23) ──
   Desktop: cards become a left column with the job detail in a sticky side
   pane. Mobile: the pane is a full-screen slide-over. The list keeps its
   scroll and filters either way. */
.wg-job-card-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.wg-job-card-head { display: flex; align-items: center; gap: 9px; }
.wg-job-card.is-sel { border-color: var(--wg-color, #0eaf4c); box-shadow: 0 0 0 2px rgba(14,175,76,.16); background: var(--wg-tint, #f4fbf7); }

.wg-job-pane { background: #fff; }
.wg-jp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; }
.wg-jp-back { border: none; background: none; font-weight: 700; font-size: .95rem; cursor: pointer; padding: 6px 2px; color: var(--wg-text); }
.wg-jp-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.wg-jp-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--wg-border); background: #fff; font-size: 1rem; cursor: pointer; }
.wg-jp-emp { display: flex; gap: 12px; align-items: flex-start; }
.wg-jp-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--wg-border); }
.wg-jp-title { font-size: 1.12rem; margin: 0 0 2px; }
.wg-jp-empname { margin: 0; color: var(--wg-muted); font-size: .84rem; }
.wg-jp-meta { color: #5b6470; font-size: .82rem; margin: 10px 0 6px; }
.wg-jp-chips { margin-bottom: 12px; }
.wg-jp-desc { font-size: .87rem; line-height: 1.65; color: #333; word-break: break-word; }
.wg-jp-desc a { color: var(--wg-color-dark, #0b8f3e); }
.wg-jp-loading { padding: 30px 0; text-align: center; }
.wg-jp-save.is-on { background: var(--wg-tint, #f4fbf7); border-color: var(--wg-color, #0eaf4c); color: var(--wg-color-dark, #0b8f3e); }

/* Desktop: side-by-side, pane sticky beside the narrowed list. */
@media (min-width: 900px) {
  .wg-jobs-split.has-pane { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
  .wg-jobs-split.has-pane .wg-jobs-list { grid-template-columns: 1fr; }
  .wg-job-pane { position: sticky; top: 74px; max-height: calc(100vh - 92px); overflow-y: auto;
    border: 1px solid var(--wg-border); border-radius: var(--wg-radius-card, 14px); padding: 16px 20px;
    box-shadow: var(--wg-shadow-card, 0 1px 3px rgba(16,24,40,.06)); }
  .wg-jp-back { display: none; }
}

/* Mobile: full-screen slide-over with the back button; ✕ hides. */
@media (max-width: 899.98px) {
  .wg-job-pane { position: fixed; inset: 0; z-index: 1150; overflow-y: auto; padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
    transform: translateX(8%); opacity: 0; transition: transform .22s var(--wg-ease-out, ease), opacity .18s ease; }
  .wg-job-pane.is-open { transform: none; opacity: 1; }
  .wg-jp-x { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wg-job-pane { transition: none; } }

/* Row head with the employer logo (split-view build) */
/* justify-content is reset deliberately: the base .wg-job-card-head rule above
   uses space-between (for a two-ended header elsewhere), and inheriting it here
   shoved short titles to the far right — the logo→title gap ranged 9px to 165px
   depending on title length. The logo and title belong together on the left. */
.wg-job-row .wg-job-card-head { display: flex; align-items: center; justify-content: flex-start; gap: 9px; }
.wg-job-row .wg-job-card-head h3 { margin: 0; }

/* Pane action buttons stay compact (the results column widens .wg-btn). */
.wg-jp-actions { flex-wrap: nowrap; }
.wg-jp-actions .wg-btn { width: auto; padding: 7px 14px; font-size: .78rem; white-space: nowrap; }
@media (max-width: 899.98px) { .wg-jp-actions { flex-wrap: wrap; } }

/* ── Split-view review round 2 (founder feedback) ── */

/* 1. The pane's action bar stays pinned while the detail scrolls. */
.wg-jp-top { position: sticky; top: 0; z-index: 6; background: #fff; padding: 10px 0; margin-top: -6px; border-bottom: 1px solid var(--wg-border); }
.wg-jp-emp { margin-top: 12px; }

/* 2. Desktop with a job open: the filter rail folds away (single column) and
   the Filters button reappears — clicking it slides the rail in as a drawer,
   exactly like the mobile sheet. Closing the pane restores the fixed rail. */
@media (min-width: 900px) {
  .wg-jobs-layout.has-pane { grid-template-columns: minmax(0, 1fr); }
  .wg-jobs-layout.has-pane .wg-jobs-rail {
    position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(86vw, 330px);
    border-radius: 0 16px 16px 0; overflow-y: auto; margin: 0; top: 0; max-height: none;
    transform: translateX(-102%); transition: transform .26s var(--wg-ease-out, ease);
    box-shadow: var(--wg-shadow-pop, 0 10px 34px rgba(16,24,40,.16));
  }
  .wg-jobs-layout.has-pane .wg-jobs-rail.is-open { transform: translateX(0); }
  .wg-jobs-layout.has-pane .wg-jobs-filterbtn { display: inline-flex; width: auto; margin-bottom: 12px; }
  .wg-jobs-layout.has-pane .wg-rail-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(12,20,15,.42); border: 0; }
  .wg-jobs-layout.has-pane .wg-rail-scrim[hidden] { display: none; }

  /* 3. Compact list rows beside the pane: title + employer + small facts,
     star pinned top-right; chips, deadline and view/save counts hide. */
  .wg-jobs-split.has-pane .wg-job-row .wg-job-card-link { grid-template-columns: minmax(0, 1fr); padding: 10px 12px; }
  .wg-jobs-split.has-pane .wg-job-row { position: relative; }
  .wg-jobs-split.has-pane .wg-job-row .wg-job-chips { display: none; }
  .wg-jobs-split.has-pane .wg-job-row-main { gap: 3px; }
  .wg-jobs-split.has-pane .wg-job-row-main h3 { font-size: .86rem; padding-right: 26px; }
  .wg-jobs-split.has-pane .wg-job-card-logo { width: 24px; height: 24px; border-radius: 6px; }
  .wg-jobs-split.has-pane .wg-job-card-emp { font-size: .72rem; margin: 0; }
  .wg-jobs-split.has-pane .wg-job-facts { gap: 4px 10px; }
  .wg-jobs-split.has-pane .wg-job-fact { font-size: .7rem; }
  .wg-jobs-split.has-pane .wg-job-row-side { position: absolute; top: 8px; right: 10px; gap: 4px; }
  .wg-jobs-split.has-pane .wg-job-row-side .wg-job-deadline,
  .wg-jobs-split.has-pane .wg-job-row-side .wg-job-views { display: none; }
}

/* No see-through strip above the sticky bar: the pane's top padding moves
   onto the bar itself. */
.wg-job-pane { padding-top: 0; }
.wg-jp-top { margin-top: 0; padding: 12px 0 10px; }

/* Start date on a job card, beside the deadline. Green (an opportunity opening)
   against the deadline's amber (a window closing) so they read as opposites. */
.wg-job-start {
  font-size: .72rem; font-weight: 600; white-space: nowrap;
  background: #eafaf0; color: #0b7a38; border-radius: 999px; padding: 2px 9px;
}
/* Inferred from the advert text rather than stated by the employer. */
.wg-job-start.is-approx { background: #f2f5f3; color: #5b6b61; }

/* Similar jobs (semantic) under the detail pane */
.wg-jp-similar { margin-top: 22px; border-top: 1px solid var(--wg-border, #e3e5ea); padding-top: 14px; }
.wg-jp-similar h3 { margin: 0 0 10px; font-size: .95rem; }
.wg-jp-simcard {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit;
  border: 1px solid var(--wg-border, #e6e8ee); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  transition: border-color .15s var(--wg-ease-out, ease), box-shadow .15s ease;
}
.wg-jp-simcard:hover { border-color: var(--wg-accent, #0eaf4c); box-shadow: 0 2px 10px rgba(14, 175, 76, .08); }
.wg-jp-simcard b { font-size: .9rem; }
.wg-jp-simcard span { font-size: .78rem; color: var(--wg-muted, #667); }
@media (prefers-reduced-motion: reduce) { .wg-jp-simcard { transition: none; } }
