/* R21 «میزان» — slice 5: job detail (PARVANDEH).
   Every value comes from r21-tokens.css. No literal colors, no literal
   font names in this file. The dial's SVG parts (track/value/needle/
   dot) live in r21-components.css; the fit teaser + tags + job list
   live in r21-market.css. */
.r21-breadcrumb { color: var(--r21-body); font-size: var(--r21-t-small); margin: 0; padding-block: var(--r21-s-4) var(--r21-s-2); }
.r21-breadcrumb a { color: var(--r21-body); text-decoration: none; }
.r21-breadcrumb a:hover { color: var(--r21-blue); }
.r21-detail-tabs { display: flex; gap: var(--r21-s-2); flex-wrap: wrap; margin-bottom: var(--r21-s-5); }
.r21-detail-tab { padding: var(--r21-s-2) var(--r21-s-3); background: var(--r21-bg); border: 1px solid var(--r21-border); border-radius: var(--r21-r-pill); color: var(--r21-body); text-decoration: none; font-weight: 500; }
.r21-detail-tab:hover { border-color: var(--r21-blue); color: var(--r21-ink); }
.r21-detail { display: grid; grid-template-columns: 1fr 320px; gap: var(--r21-s-6); align-items: start; padding-bottom: var(--r21-s-8); }
.r21-detail-main { min-width: 0; }
.r21-detail-head { display: flex; gap: var(--r21-s-4); align-items: flex-start; flex-wrap: wrap; }
.r21-detail-head-text { flex: 1; min-width: 0; }
.r21-detail-title { font-family: var(--r21-font-display); font-weight: 800; font-size: var(--r21-t-section); line-height: 1.25; margin: 0 0 var(--r21-s-2); }
.r21-detail-salary { margin: 0 0 var(--r21-s-2); }
.r21-detail-salary-label { display: block; font-size: var(--r21-t-micro); color: var(--r21-body); margin-bottom: var(--r21-s-1); }
.r21-detail-salary-value { font-family: var(--r21-font-display); font-weight: 800; font-size: var(--r21-t-section); line-height: 1.15; color: var(--r21-ink); }
.r21-detail-sub { color: var(--r21-body); margin: 0 0 var(--r21-s-4); }
.r21-detail-sub a { color: var(--r21-body); text-decoration: none; }
.r21-detail-sub a:hover { color: var(--r21-blue); }
.r21-detail-dial { position: relative; width: 120px; height: 120px; flex: none; color: var(--r21-ink); }
.r21-detail-dial-svg { display: block; width: 100%; height: 100%; }
.r21-detail-dial-num { position: absolute; inset-inline: 0; bottom: 6%; text-align: center; font-family: var(--r21-font-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--r21-ink); }
.r21-detail-dial-num--small { font-size: 18px; }
.r21-detail-dial-label { position: absolute; inset-inline: 0; bottom: 0; text-align: center; font-size: var(--r21-t-micro); color: var(--r21-body); }
.r21-section-title { font-family: var(--r21-font-display); font-weight: 700; font-size: var(--r21-t-h2); line-height: 1.25; margin: var(--r21-s-6) 0 var(--r21-s-3); }
.r21-facts { display: grid; grid-template-columns: auto 1fr; gap: var(--r21-s-1) var(--r21-s-4); margin: 0 0 var(--r21-s-3); }
.r21-facts dt { color: var(--r21-body); font-size: var(--r21-t-small); font-weight: 700; }
.r21-facts dd { margin: 0; }
.r21-source-note { color: var(--r21-body); font-size: var(--r21-t-small); margin: 0 0 var(--r21-s-3); }
.r21-desc { color: var(--r21-body); }
.r21-desc-section-title { font-family: var(--r21-font-display); font-weight: 700; font-size: var(--r21-t-title); color: var(--r21-ink); margin: var(--r21-s-4) 0 var(--r21-s-1); }
.r21-desc-section-body p { margin: 0 0 var(--r21-s-2); }
.r21-detail-skills { margin-top: var(--r21-s-4); }
.r21-skill-chips { list-style: none; margin: 0 0 var(--r21-s-3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--r21-s-1); }
.r21-skill-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--r21-paper); border: 1px solid var(--r21-border); border-radius: var(--r21-r-pill); padding: 2px var(--r21-s-2); font-size: var(--r21-t-small); color: var(--r21-body); }
.r21-skill-chip svg { width: 12px; height: 12px; flex: none; }
.r21-skill-have { border-color: var(--r21-success); color: var(--r21-success); font-weight: 700; }
.r21-skill-missing { border-color: var(--r21-urgent); color: var(--r21-urgent); }
.r21-card { background: var(--r21-bg); border: 1px solid var(--r21-border); border-radius: var(--r21-r-card); padding: var(--r21-s-4); }
.r21-card h3 { font-family: var(--r21-font-display); font-weight: 700; font-size: var(--r21-t-title); margin: 0; }
.r21-card h3 a { color: var(--r21-ink); text-decoration: none; }
.r21-card h3 a:hover { color: var(--r21-blue); }
.r21-card p { color: var(--r21-body); margin: 0 0 var(--r21-s-2); }
.r21-card p a { color: var(--r21-blue); font-weight: 700; text-decoration: none; }
.r21-company-head { display: flex; gap: var(--r21-s-3); align-items: flex-start; margin-bottom: var(--r21-s-3); }
.r21-company-head .r21-job-logo { flex: none; }
.r21-fit-why-title { font-family: var(--r21-font-display); font-weight: 700; font-size: var(--r21-t-title); color: var(--r21-ink); margin: var(--r21-s-3) 0 var(--r21-s-2); }
.r21-meter-row { display: flex; align-items: center; gap: var(--r21-s-2); color: var(--r21-body); font-size: var(--r21-t-small); margin-bottom: var(--r21-s-3); }
.r21-meter { flex: 1; height: 6px; background: var(--r21-paper); border-radius: var(--r21-r-pill); overflow: hidden; }
.r21-meter-fill { display: block; height: 100%; background: var(--r21-blue); border-radius: var(--r21-r-pill); }
.r21-match-next, .r21-match-all { color: var(--r21-body); font-size: var(--r21-t-small); margin: var(--r21-s-2) 0 0; }
.r21-detail-skills-empty { color: var(--r21-body); margin: 0; }
.r21-salary-ctx { margin-top: var(--r21-s-6); }
.r21-salary-note { color: var(--r21-body); font-size: var(--r21-t-small); margin: 0 0 var(--r21-s-3); }
.r21-stat-row { display: flex; gap: var(--r21-s-4); flex-wrap: wrap; }
.r21-stat-label { color: var(--r21-body); font-size: var(--r21-t-small); font-weight: 700; }
.r21-stat-value { font-family: var(--r21-font-display); font-weight: 800; font-size: var(--r21-t-section); }
.r21-stat-value--small { font-size: var(--r21-t-h2); }
.r21-stat-note { color: var(--r21-body); font-size: var(--r21-t-small); }
.r21-distbar { position: relative; height: 6px; background: var(--r21-paper); border-radius: var(--r21-r-pill); margin: var(--r21-s-4) 0 var(--r21-s-2); }
.r21-distbar-range { position: absolute; top: 0; height: 100%; background: var(--r21-blue); border-radius: var(--r21-r-pill); }
.r21-distbar-median { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--r21-ink); }
.r21-distbar-labels { display: flex; flex-wrap: wrap; gap: var(--r21-s-1) var(--r21-s-4); color: var(--r21-body); font-size: var(--r21-t-small); margin: 0; }
.r21-salary-caveat { color: var(--r21-body); font-size: var(--r21-t-small); margin: var(--r21-s-2) 0 0; }
.r21-detail-rail { position: sticky; top: calc(var(--r21-nav-h) + var(--r21-s-3)); display: flex; flex-direction: column; gap: var(--r21-s-2); background: var(--r21-bg); border: 1px solid var(--r21-border); border-radius: var(--r21-r-card); padding: var(--r21-s-4); }
.r21-detail-rail form { display: flex; }
.r21-detail-rail form button { flex: 1; }
.r21-rail-note { color: var(--r21-body); font-size: var(--r21-t-small); margin: 0; }
.r21-btn-block { width: 100%; justify-content: center; }
.r21-empty { text-align: center; padding: var(--r21-s-8) 0; color: var(--r21-body); }
.r21-mobile-cta { display: none; }
@media (max-width: 1024px) {
  .r21-detail { grid-template-columns: 1fr; }
  .r21-detail-rail { position: static; }
  .r21-mobile-cta { display: flex; gap: var(--r21-s-2); position: sticky; bottom: var(--r21-s-3); background: var(--r21-bg); border: 1px solid var(--r21-border); border-radius: var(--r21-r-pill); padding: var(--r21-s-2); box-shadow: var(--r21-shadow-menu); margin-top: var(--r21-s-4); }
  .r21-mobile-cta .r21-btn { flex: 1; justify-content: center; }
  /* The two nowrap CTAs' combined min-content exceeds the bar on phones
     (the ghost tailor pill stuck 9px past the left edge on /jobs/2669) —
     let the bar wrap and the labels wrap, so it can never overflow. */
  .r21-mobile-cta { flex-wrap: wrap; }
  .r21-mobile-cta .r21-btn { white-space: normal; text-align: center; line-height: 1.4; }
}
