/* Job page (frontend/jobs/details): the job in a main column, one sidebar of cards beside it.
   Tokens from skin.css (--cs-*), the same values as the redesigned site. */
.cs-jd { --jd-gap: 24px; --jd-r: 16px; padding: 40px 0 96px; }
.cs-jd .container, .cs-jd-related .container { max-width: none; }
.cs-jd__note { margin-bottom: 24px; padding: 12px 16px; border-radius: 8px; background: var(--cs-surface); }
.cs-jd__note--ok { border-left: 3px solid var(--cs-action); }
.cs-jd__note--err { border-left: 3px solid #b42318; }

.cs-jd__crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; font-size: 14px; color: var(--cs-muted); }
.cs-jd__crumbs a { color: var(--cs-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cs-line); }
.cs-jd__crumbs a:hover { text-decoration-color: currentColor; }

.cs-jd__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
@media (max-width: 1199px) { .cs-jd__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }
@media (max-width: 991px) { .cs-jd__grid { grid-template-columns: minmax(0, 1fr); } }

/* main column */
.cs-jd__main { display: grid; gap: var(--jd-gap); min-width: 0; }
.cs-jd__head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 20px; align-items: start;
  padding: 32px; border: 1px solid var(--cs-line); border-radius: var(--jd-r); background: #fff; }
.cs-jd__logo { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--cs-surface); display: grid; place-items: center; text-decoration: none; }
.cs-jd__logo img { width: 100%; height: 100%; object-fit: contain; }
.cs-jd__logo-in { font: 500 18px/1 var(--cs-text); color: var(--cs-ink); }
.cs-jd__posted { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--cs-action); }
.cs-jd__title { margin: 0; font: 500 clamp(26px, 1.4vw + 16px, 36px)/1.15 var(--cs-display) !important; letter-spacing: -0.02em; color: var(--cs-ink); }
.cs-jd__at { display: none; }
.cs-jd__company { display: inline-block; margin-top: 8px; color: var(--cs-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cs-line); }
.cs-jd__save-btn, .cs-jd__saved { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid rgb(22 36 28 / .25);
  background: #fff; color: var(--cs-ink); font: 500 14px/1 var(--cs-text); cursor: pointer; }
.cs-jd__save-btn:hover { background: var(--cs-surface); }
.cs-jd__saved { border-color: transparent; background: var(--cs-surface); color: var(--cs-action); cursor: default; }
.cs-jd__save form { margin: 0; }
.cs-jd__facts { grid-column: 1 / -1; list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--cs-line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; }
.cs-jd__facts li { display: grid; gap: 4px; font-weight: 500; color: var(--cs-ink); font-size: 15px; }
.cs-jd__facts li > span:first-child { font-size: 13px; font-weight: 400; color: var(--cs-muted); }

.cs-jd__block { padding: 32px; border: 1px solid var(--cs-line); border-radius: var(--jd-r); background: #fff; }
.cs-jd__block h2 { margin: 0 0 16px; font: 500 24px/1.2 var(--cs-display) !important; letter-spacing: -0.015em; }
.cs-jd__prose { color: var(--cs-ink); font-size: 16px; line-height: 1.7; }
.cs-jd__prose p { margin: 0 0 12px; }
.cs-jd__prose ul, .cs-jd__prose ol { margin: 0 0 16px; padding-left: 20px; }
.cs-jd__prose li { margin-bottom: 6px; }
.cs-jd__prose p:empty, .cs-jd__prose p:has(> br:only-child) { display: none; }
.cs-jd__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cs-jd__tags span { padding: 6px 12px; border-radius: 999px; background: var(--cs-surface); font-size: 14px; color: var(--cs-ink); }
.cs-jd__muted { color: var(--cs-muted); font-size: 14px; line-height: 1.5; }
.cs-jd__link { color: var(--cs-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(22 36 28 / .3); }
.cs-jd__link::after { content: " →"; }
.cs-jd__link:hover { text-decoration-color: currentColor; color: var(--cs-action); }
.cs-jd__share { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 4px 4px 0; font-size: 14px; }
.cs-jd__share span { color: var(--cs-muted); }
.cs-jd__share a { color: var(--cs-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cs-line); }

/* sidebar */
.cs-jd__side { display: grid; gap: 16px; position: sticky; top: 96px; }
@media (max-width: 991px) { .cs-jd__side { position: static; } }
.cs-jd__card { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--cs-line); border-radius: var(--jd-r); background: #fff; text-align: left; }
.cs-jd__card p { margin: 0; }
.cs-jd__card-h { margin: 0; font: 500 18px/1.3 var(--cs-display) !important; }
.cs-jd__label { font-size: 13px; font-weight: 500; color: var(--cs-muted); }
.cs-jd__card--apply { background: var(--cs-ink); border-color: var(--cs-ink); color: #f7f7f1; }
.cs-jd__card--apply .cs-jd__label, .cs-jd__card--apply .cs-jd__muted { color: #b1b8ae; }
.cs-jd__pay { font: 500 28px/1.1 var(--cs-display); letter-spacing: -0.02em; color: #f7f7f1; }
.cs-jd__pay small { font-size: 15px; font-weight: 400; color: #b1b8ae; letter-spacing: 0; }
.cs-jd__apply { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 10px; background: #00bf58; color: var(--cs-ink) !important;
  font: 500 17px/1 var(--cs-text); text-decoration: none; transition: background-color .2s ease, transform .12s ease; }
.cs-jd__apply::after { content: "→"; transition: transform .2s ease; }
.cs-jd__apply:hover { background: #1fd36f; }
.cs-jd__apply:hover::after { transform: translateX(3px); }
.cs-jd__apply:active { transform: translateY(1px) scale(.985); }
.cs-jd__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid rgb(247 247 241 / .14); }
.cs-jd__stats div { display: grid; gap: 2px; }
.cs-jd__stats dt { font-size: 13px; font-weight: 400; color: #b1b8ae; }
.cs-jd__stats dd { margin: 0; font: 500 22px/1.1 var(--cs-display); font-variant-numeric: tabular-nums; }
.cs-jd__premium a { color: #f7f7f1; text-decoration: underline; text-underline-offset: 3px; }
.cs-jd__rows { display: grid; margin: 0; }
.cs-jd__rows div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cs-line); font-size: 14px; }
.cs-jd__rows div:last-child { border-bottom: 0; padding-bottom: 0; }
.cs-jd__rows dt { font-weight: 400; color: var(--cs-muted); }
.cs-jd__rows dd { margin: 0; font-weight: 500; color: var(--cs-ink); }
.cs-jd__map { height: 180px; border-radius: 12px; overflow: hidden; background: var(--cs-surface); }
.cs-jd__map gmp-map { width: 100%; height: 100%; }
.cs-jd__help { width: 100%; cursor: pointer; font: inherit; color: var(--cs-ink); background: var(--cs-surface); border-color: transparent; transition: border-color .2s ease, transform .2s ease; }
.cs-jd__help strong { font: 500 18px/1.3 var(--cs-display); }
.cs-jd__help:hover { transform: translateY(-2px); border-color: rgb(22 36 28 / .2); }

@media (max-width: 575px) {
  .cs-jd { padding-top: 24px; }
  .cs-jd__head, .cs-jd__block { padding: 20px; }
  .cs-jd__head { grid-template-columns: 48px minmax(0, 1fr); }
  .cs-jd__logo { width: 48px; height: 48px; }
  .cs-jd__save { grid-column: 1 / -1; }
}

/* similar jobs */
.cs-jd-related { padding: 0 0 96px; }
.cs-jd-related__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.cs-jd-related__head h2 { margin: 0; font: 500 clamp(26px, 1vw + 18px, 34px)/1.15 var(--cs-display) !important; letter-spacing: -0.02em; }
.cs-jd-related__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cs-line); }
.cs-jd-related__row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--cs-line); }
.cs-jd-related__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--cs-surface); font: 500 14px/1 var(--cs-text); }
.cs-jd-related__row h3 { margin: 0 0 4px; font: 500 18px/1.3 var(--cs-display) !important; }
.cs-jd-related__row h3 a { color: var(--cs-ink); text-decoration: none; }
.cs-jd-related__row h3 a::after { content: ""; position: absolute; inset: 0; }
.cs-jd-related__row:hover h3 a { color: var(--cs-action); text-decoration: underline; text-underline-offset: 4px; }
.cs-jd-related__row p { margin: 0; font-size: 14px; color: var(--cs-muted); }
.cs-jd-related__pay { font-weight: 500; white-space: nowrap; }
@media (max-width: 575px) { .cs-jd-related__row { grid-template-columns: 40px minmax(0, 1fr); } .cs-jd-related__pay { grid-column: 2; } }

/* share: round buttons with each network's own mark in its own colour */
.cs-jd__share { gap: 12px; }
.cs-jd__share span { margin-right: 4px; }
.cs-share { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cs-line); background: #fff;
  text-decoration: none !important; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.cs-share svg { width: 20px; height: 20px; }
.cs-share--fb svg { fill: #0866ff; }
.cs-share--in svg { fill: #0a66c2; }
.cs-share--wa svg { fill: #25d366; }
.cs-share--x svg { fill: #000; width: 18px; height: 18px; }
.cs-share:hover { transform: translateY(-2px); border-color: rgb(22 36 28 / .3); }
.cs-share:focus-visible { outline: 2px solid var(--cs-action); outline-offset: 2px; }
