/* 04 · Job Detail — Figma 370:1346 (Desktop 370:1347 · Mobile 371:4785)
   Line-heights are Figma's values rounded to whole px: Figma lays text out on whole-pixel lines
   (e.g. 26.4 → 5 lines = 130, 38.4 → 38), so rounding is what reproduces its box heights. */

/* Hero — 370:1402 / 371:4820 (Page Hero layout; chips replace the accent rule) */
.jd-hero__chips { display: flex; gap: 8px; }
.page-job-detail .vt-page-hero__intro { white-space: pre-wrap; line-height: 25px; }   /* 24.8 → 2 lines = 50 */   /* keeps the double spaces around “·” */
/* One line, as Figma draws it (371:4821), but kept inside the column: the trail never shrinks and a
   long job title is cut with an ellipsis at the column edge instead of running into the gutter
   (dp-uiux S1 gate, 2026-10-19 — the full title is the H1 right below). */
.page-job-detail .vt-breadcrumb { flex-wrap: nowrap; white-space: nowrap; max-width: 100%; min-width: 0; }
.page-job-detail .vt-breadcrumb__trail { flex-shrink: 0; }
.page-job-detail .vt-breadcrumb__current { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Content — Desktop 370:1415 (main | apply panel) · Mobile 371:4833 apply → 371:4858 main → 371:4916 share */
.jd-content { padding-block: 24px 56px; }
.jd-content__grid { display: flex; flex-direction: column; }
.jd-main { display: flex; flex-direction: column; gap: 40px; margin-top: 48px; }   /* 8 + 40 */
.jd-share { margin-top: 32px; }

.jd-block { display: flex; flex-direction: column; gap: 16px; }
.jd-block__title {
  font-family: var(--vt-font-display); font-weight: 700; color: var(--vt-semantic-ink);
}
.jd-block__title { font-size: 26px; line-height: 31px; letter-spacing: -0.39px; }
.jd-block__text { font-size: 16px; line-height: 26px; /* Figma 26.4 → renders whole-px lines (5 lines = 130) */ color: var(--vt-semantic-body); }
.jd-list { display: flex; flex-direction: column; gap: 12px; }
.jd-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 26px; /* Figma 25.6 → 26 / 52 */ color: var(--vt-semantic-body); }
.jd-list li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cliente-p1-rol-secondary);
}

/* Apply card — 370:1475 / 371:4834 */
.jd-apply {
  display: flex; flex-direction: column; padding: 26px 24px;
  border-radius: var(--vt-radius-28); background: var(--vt-base-white);
  box-shadow: inset 0 0 0 1.5px var(--vt-neutral-100), var(--vt-shadow-card);
}
.jd-apply__salary {
  font-family: var(--vt-font-display); font-weight: 800;
  font-size: 36px; line-height: 43px; letter-spacing: -0.72px; color: var(--vt-semantic-ink);
}
.jd-apply__per { font-size: 15px; line-height: 18px; color: var(--vt-semantic-meta); }
.jd-apply__rows { padding: 22px 0 24px; }
.jd-apply__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 42px; border-top: 1px solid var(--vt-neutral-100);
}
.jd-apply__row:last-child { height: 43px; border-bottom: 1px solid var(--vt-neutral-100); }
.jd-apply__row dt {
  font-size: 11.5px; line-height: 13.92px; font-weight: 700; letter-spacing: 1.38px; text-transform: uppercase;
  color: var(--vt-semantic-meta);
}
.jd-apply__row dd { font-size: 14px; line-height: 16.94px; font-weight: 600; color: var(--vt-semantic-ink); text-align: right; }
.jd-apply__actions { display: flex; flex-direction: column; gap: 12px; }
.jd-apply__actions .vt-btn--primary { height: 56px; justify-content: space-between; }
.jd-apply__actions .vt-btn--secondary { height: 45px; }

/* Share — 370:1503 / 371:4917 */
.jd-share {
  display: flex; flex-direction: column; gap: 14px; padding: 24px 28px;
  border-radius: var(--vt-radius-28); background: var(--vt-base-white);
  box-shadow: inset 0 0 0 1.5px var(--vt-neutral-100);
}
.jd-share__title { font-size: 16px; line-height: 19px; font-weight: 600; color: var(--vt-semantic-ink); }
.jd-share__options { display: flex; flex-wrap: wrap; gap: 8px; }

/* Annual salary range (client review 04 + gate note 6, 2026-10-15): each figure stays whole, so a range that is too wide
   breaks only after the dash. The annual range is sized down so it fits one line in the 360px Desktop card and
   the Mobile card at 375 and 320. Board: 04b (job-detail-salary-states). */
.jd-apply__salary--annual span { white-space: nowrap; }
.jd-apply__salary--annual { font-size: 24px; line-height: 29px; letter-spacing: -0.48px; }
@media (min-width: 360px) { .jd-apply__salary--annual { font-size: 30px; line-height: 36px; letter-spacing: -0.6px; } }

/* Similar vacancies — 370:1514 / 371:4924 */
.jd-similar { background: var(--cliente-p1-rol-surface); padding-block: 56px; }
.jd-similar__title {
  font-family: var(--vt-font-display); font-weight: 800;
  font-size: 34px; line-height: 34px; letter-spacing: -0.68px; color: var(--vt-semantic-ink);
}
.jd-similar__sub { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--vt-semantic-meta); }
.jd-similar__cards { margin-top: 44px; display: flex; flex-direction: column; gap: 16px; }

/* Empty state — 445:6346 / 445:6359 */
.jd-empty {
  margin-top: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 48px 36px;
  border-radius: var(--vt-radius-32); background: var(--vt-base-white);
  box-shadow: inset 0 0 0 1.5px var(--vt-neutral-100);
}
.jd-empty__caption {
  font-size: 12px; line-height: 15px; font-weight: 600; letter-spacing: 1.44px; text-transform: uppercase;
  color: var(--vt-semantic-meta);
}
.jd-empty__title {
  font-family: var(--vt-font-display); font-weight: 700;
  font-size: 28px; line-height: 32px; letter-spacing: -0.42px; color: var(--vt-semantic-ink);
}
.jd-empty__text { font-size: 16px; line-height: 24px; color: var(--vt-semantic-meta); }

@media (min-width: 1024px) {
  /* Figma breaks the 72px title after "Mechanic" (370:1408, 1000 wide → 138 high). The browser's Bricolage
     measures 999.3px, so it would just fit on one line — the cap reproduces Figma's break. */
  .page-job-detail .vt-page-hero__title { max-width: 990px; }
  .page-job-detail .vt-page-hero__intro { line-height: 29.45px; }
  .jd-content { padding-block: 64px 110px; }
  .jd-content__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr;
    column-gap: 48px; row-gap: 20px; align-items: start;
  }
  .jd-main { grid-column: 1; grid-row: 1 / span 2; gap: 48px; margin-top: 0; }
  .jd-apply { grid-column: 2; grid-row: 1; padding: 30px 28px; }
  .jd-share { grid-column: 2; grid-row: 2; margin-top: 0; }
  .jd-block__title { font-size: 32px; line-height: 38px; letter-spacing: -0.48px; }
  .jd-block__text { font-size: 17px; line-height: 28px; }   /* 28.05 → 3 lines = 84 */
  .jd-apply__salary { font-size: 40px; line-height: 48px; letter-spacing: -0.8px; }
  .jd-apply__salary--annual { font-size: 32px; line-height: 38px; letter-spacing: -0.64px; }

  .jd-similar { padding-block: 96px 110px; }
  .jd-similar__title { font-size: 56px; line-height: 56px; letter-spacing: -1.4px; }
  .jd-similar__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
