/* SLFS/web-v2 · بخشِ work
   منتقل‌شده از <style>ِ قالب (2026-10-02) — RULES §۳.۵ */

/* ══════════ work ══════════ */
/* ══ SLFS — بخشِ تحلیل شغلی (work) — از work-section.html ══ */
.slfs-wk {
    --wk-teal: #12B886; --wk-teal-d: #0D9488; --wk-teal-l: #E6FCF5; --wk-teal-m: #B2F2DB;
    --wk-navy: #1E3A5F; --wk-slate: #334155; --wk-text: #343A40; --wk-sec: #64748B; --wk-border: #E5E7EB;
}

/* ══ شاخص‌های روش ══ */
.slfs-wk .wk-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px }
.slfs-wk .wk-metric { border: 1px solid var(--wk-border); border-radius: 14px; padding: 16px 14px; background: #fff }
.slfs-wk .wk-metric__v { font-size: 30px; font-weight: 900; color: var(--wk-navy); line-height: 1.1 }
.slfs-wk .wk-metric__k { font-size: 12px; font-weight: 700; color: var(--wk-sec); margin-top: 4px }

/* ══ مراحل روش تحلیل ══ */
.slfs-wk .wk-pipe { display: grid; grid-template-columns: repeat(5, 1fr); position: relative }
.slfs-wk .wk-pipe::before { content: ''; position: absolute; top: 20px; right: 10%; left: 10%; height: 2px; background: repeating-linear-gradient(to left, #CBD5E1 0 6px, transparent 6px 11px) }
.slfs-wk .wk-pipe__step { position: relative; text-align: center; padding: 0 6px }
.slfs-wk .wk-pipe__dot { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 10px; background: #fff; border: 2px solid var(--wk-teal); color: var(--wk-teal-d); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; position: relative; z-index: 1 }
.slfs-wk .wk-pipe__step:last-child .wk-pipe__dot { background: var(--wk-navy); border-color: var(--wk-navy); color: #fff }
.slfs-wk .wk-pipe__title { font-size: 13px; font-weight: 800; color: var(--wk-slate) }
.slfs-wk .wk-pipe__desc { font-size: 11px; color: var(--wk-sec); line-height: 1.8; margin-top: 3px }

/* ══ نقشه تماتیک ══ */
.slfs-wk .wk-map-wrap { overflow: visible }
.slfs-wk .wk-map { display: block; width: 100%; min-width: 0; height: auto }
.slfs-wk .wk-map-g { transition: opacity .25s; cursor: default }
.slfs-wk .wk-map.is-focus .wk-map-g { opacity: .18 }
.slfs-wk .wk-map.is-focus .wk-map-g.is-on { opacity: 1 }
/* طراحی در ≤۵۷۶px نقشه را با JS بازسازی می‌کرد؛ اینجا هر دو SVG سمتِ سرور ساخته و با CSS جابه‌جا می‌شوند */
.slfs-wk .wk-map--m { display: none }
.slfs-wk .wk-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 14px }
.slfs-wk .wk-legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--wk-slate) }
.slfs-wk .wk-legend__dot { width: 10px; height: 10px; border-radius: 50% }
.slfs-wk .wk-text { margin-top: 20px; padding-top: 18px; border-top: 1px solid #F1F5F9; font-size: 14px; line-height: 28px; color: #374151; text-align: justify }

/* ══ نیمرخ شما ══ */
.slfs-wk .wk-profile { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: center }
.slfs-wk .wk-radar { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto }
.slfs-wk .wk-plist { display: flex; flex-direction: column }
.slfs-wk .wk-prow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F1F5F9 }
.slfs-wk .wk-prow:last-child { border-bottom: none }
.slfs-wk .wk-prow__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0 }
.slfs-wk .wk-prow__name { flex: 1; font-size: 13px; font-weight: 700; color: var(--wk-slate) }
.slfs-wk .wk-prow__bars { display: flex; gap: 3px; direction: ltr; flex-shrink: 0 }
.slfs-wk .wk-prow__bar { width: 14px; height: 6px; border-radius: 3px; background: #E5E7EB }
.slfs-wk .wk-prow__bar.is-on { background: var(--wk-navy) }
.slfs-wk .wk-status { font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 20px; white-space: nowrap }
.slfs-wk .wk-prow .wk-status { width: 96px; text-align: center; flex-shrink: 0 }
.slfs-wk .wk-overview { margin-top: 20px; padding: 14px 16px; background: #F8FAFC; border-radius: 12px; font-size: 14px; line-height: 27px; color: #374151; text-align: justify }
.slfs-wk .wk-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FFF8EB; border: 1px solid #FDE68A; font-size: 13px; line-height: 25px; color: #78350F; text-align: justify }
.slfs-wk .wk-warn svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px }

/* ══ ماتریس اثر (۱۵ حالت × ۶ متغیر) ══ */
.slfs-wk .wk-heat-intro { font-size: 14px; line-height: 28px; color: #374151; text-align: justify; margin-bottom: 18px }
.slfs-wk .wk-heat { display: grid; grid-template-columns: 56px repeat(6, minmax(0, 1fr)); gap: 2px; max-width: 720px; margin: 0 auto }
.slfs-wk .wk-heat__corner { font-size: 10px; font-weight: 700; color: #94A3B8; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 5px }
.slfs-wk .wk-heat__h { font-size: 10.5px; font-weight: 800; color: var(--wk-slate); text-align: center; padding: 2px 2px 6px; line-height: 1.4; display: flex; align-items: flex-end; justify-content: center; white-space: nowrap; overflow: hidden }
.slfs-wk .wk-heat__row { display: flex; align-items: center; justify-content: center; border-radius: 5px; height: 20px }
.slfs-wk .wk-heat__code { direction: ltr; font-size: 11px; font-weight: 800; color: var(--wk-slate); letter-spacing: .3px }
.slfs-wk .wk-heat__row.is-you { background: var(--wk-navy) }
.slfs-wk .wk-heat__row.is-you .wk-heat__code { color: #fff }
.slfs-wk .wk-heat__c { height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; color: rgba(51, 65, 85, .8) }
.slfs-wk .wk-heat__c.is-you { box-shadow: inset 0 0 0 2px var(--wk-navy) }
.slfs-wk .wk-heat-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 16px }
.slfs-wk .wk-heat-legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--wk-sec) }
.slfs-wk .wk-heat-legend__sw { width: 18px; height: 12px; border-radius: 4px }
.slfs-wk .wk-heat-read { margin-top: 18px; font-size: 13.5px; line-height: 26px; color: #4B5563; text-align: justify }

/* ══ کارت متغیرها (مستطیلی، زیر هم) ══ */
.slfs-wk .wk-vars { display: flex; flex-direction: column; gap: 16px; margin-top: 24px }
.slfs-wk .wk-var { display: flex; flex-direction: column; border: 1px solid var(--wk-border); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, .04) }
.slfs-wk .wk-var__meta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px; padding: 16px 20px; background: #FAFBFC; border-bottom: 1px solid #F1F5F9 }
.slfs-wk .wk-var__head { display: flex; align-items: center; gap: 10px }
.slfs-wk .wk-var__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--dc); display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.slfs-wk .wk-var__icon svg { width: 21px; height: 21px }
.slfs-wk .wk-var__name { font-size: 15px; font-weight: 800; color: var(--wk-slate); line-height: 1.5 }
.slfs-wk .wk-var__domain { font-size: 11px; font-weight: 700; color: var(--dc) }
.slfs-wk .wk-var__meta .wk-status { justify-self: end }
.slfs-wk .wk-var__def { grid-column: 1/-1; font-size: 12.5px; color: var(--wk-sec); line-height: 23px }
.slfs-wk .wk-var__body { padding: 18px 20px }
.slfs-wk .wk-var__label { font-size: 11px; font-weight: 800; color: var(--wk-slate); margin-bottom: 4px }
.slfs-wk .wk-var__text { font-size: 14px; line-height: 28px; color: #374151; text-align: justify }
.slfs-wk .wk-var__signs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px }
.slfs-wk .wk-var__sign { font-size: 11px; font-weight: 700; background: #F1F5F9; color: #475569; border-radius: 8px; padding: 3px 10px }

/* ══ ریسپانسیو ══ */
@media (max-width: 768px) {
    .slfs-wk .wk-metrics { grid-template-columns: repeat(2, 1fr) }
    .slfs-wk .wk-profile { grid-template-columns: 1fr }
    .slfs-wk .wk-var { grid-template-columns: 1fr }
    .slfs-wk .wk-var__meta { border-left: none; border-bottom: 1px solid #F1F5F9 }
}
@media (max-width: 576px) {
    .slfs-wk .wk-metric__v { font-size: 24px }

    .slfs-wk .wk-pipe { grid-template-columns: 1fr }
    .slfs-wk .wk-pipe::before { display: none }
    .slfs-wk .wk-pipe__step { display: flex; align-items: flex-start; gap: 12px; text-align: right; padding: 0 0 26px }
    .slfs-wk .wk-pipe__step:last-child { padding-bottom: 0 }
    .slfs-wk .wk-pipe__step:not(:last-child)::after { content: ''; position: absolute; right: 15px; top: 40px; bottom: 8px; width: 2px; background: #E5E7EB; border-radius: 2px }
    .slfs-wk .wk-pipe__dot { width: 32px; height: 32px; margin: 0; flex-shrink: 0; font-size: 12px }
    .slfs-wk .wk-pipe__desc { margin-top: 1px }

    .slfs-wk .wk-map--d { display: none }
    .slfs-wk .wk-map--m { display: block }
    .slfs-wk .wk-text { font-size: 13.5px; line-height: 26px }

    .slfs-wk .wk-prow .wk-status { width: 84px; font-size: 10.5px; padding: 2px 4px }
    .slfs-wk .wk-prow__name { font-size: 12px }
    .slfs-wk .wk-prow__dot { display: none }

    .slfs-wk .wk-heat { grid-template-columns: 40px repeat(6, minmax(0, 1fr)); gap: 2px }
    .slfs-wk .wk-heat__h { font-size: 10px; padding: 0 0 6px; height: 80px }
    .slfs-wk .wk-heat__full { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap }
    .slfs-wk .wk-heat__row { height: 17px }
    .slfs-wk .wk-heat__code { font-size: 10px }
    .slfs-wk .wk-heat__c { height: 17px; font-size: 0 }
    .slfs-wk .wk-var__meta, .slfs-wk .wk-var__body { padding: 14px }
}
