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

/* ══════════ cycle ══════════ */
/* ══ SLFS — چرخه تنهایی و پیوند (.slfs-cy) — از cycle-section.html ══ */
.slfs-cy {
    --cy-teal: #12B886;
    --cy-navy: #1E3A5F; --cy-navy-l: #EEF2F7;
    --cy-amber: #F59F00; --cy-amber-l: #FFF9DB;
    --cy-violet: #6741D9; --cy-violet-l: #F3F0FF;
    --cy-slate: #334155; --cy-text: #343A40; --cy-sec: #64748B; --cy-border: #E5E7EB;
    /* رنگِ نوعِ چرخه — روی ریشه inline از TYPESِ prep بازنویسی می‌شود */
    --cy-cc: #E8590C; --cy-cl: #FFF4E6;
}
.slfs-cy .cy-p { font-size: 14.5px; line-height: 29px; color: #374151; text-align: justify }

/* ══ سه جهت چرخه ══ */
.slfs-cy .cy-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px }
.slfs-cy .cy-type { border-radius: 14px; background: var(--cy-tl); padding: 16px }
.slfs-cy .cy-type__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px }
.slfs-cy .cy-type__icon { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--cy-tc); display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.slfs-cy .cy-type__icon svg { width: 18px; height: 18px }
.slfs-cy .cy-type__name { font-size: 14.5px; font-weight: 900; color: var(--cy-tc) }
.slfs-cy .cy-type__desc { font-size: 13px; line-height: 24px; color: var(--cy-slate); text-align: justify }

/* ══ نمودار چرخه ══ */
.slfs-cy .cy-main { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; align-items: center }
.slfs-cy .cy-svg { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto }
.slfs-cy .cy-node { cursor: pointer }
.slfs-cy .cy-node circle { transition: stroke-width .2s }
.slfs-cy .cy-node:hover circle { stroke-width: 4.5 }
.slfs-cy .cy-side { display: flex; flex-direction: column; gap: 14px }
.slfs-cy .cy-badge { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--cy-cl) }
.slfs-cy .cy-badge__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--cy-cc); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.slfs-cy .cy-badge__icon svg { width: 22px; height: 22px }
.slfs-cy .cy-badge__k { font-size: 11px; font-weight: 800; color: var(--cy-sec) }
.slfs-cy .cy-badge__name { font-size: 18px; font-weight: 900; color: var(--cy-cc); line-height: 1.4 }
.slfs-cy .cy-badge__str { font-size: 12px; font-weight: 700; color: var(--cy-slate) }
.slfs-cy .cy-lev { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--cy-amber); background: var(--cy-amber-l) }
.slfs-cy .cy-lev__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--cy-amber); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.slfs-cy .cy-lev__icon svg { width: 16px; height: 16px }
.slfs-cy .cy-lev__k { font-size: 12.5px; font-weight: 900; color: #8A5A00 }
.slfs-cy .cy-lev__v { font-size: 12px; font-weight: 700; color: var(--cy-slate) }

/* ══ طیف چرخه‌ها ══ */
.slfs-cy .cy-gauge { margin-top: 22px; padding-top: 18px; border-top: 1px solid #F1F5F9 }
.slfs-cy .cy-gauge__k { font-size: 12.5px; font-weight: 900; color: var(--cy-slate); margin-bottom: 22px }
.slfs-cy .cy-gauge__row { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 3px }
.slfs-cy .cy-g { position: relative; height: 16px; border-radius: 5px }
.slfs-cy .cy-g.is-you { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cy-navy) }
/* برچسبِ «شما» — در طراحی ::before بود؛ متنِ واقعی شد (سرور/PDF) */
.slfs-cy .cy-g__you { position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 900; color: var(--cy-navy); white-space: nowrap }
.slfs-cy .cy-g__code { display: block; text-align: center; font-size: 9px; font-weight: 700; color: #94A3B8; direction: ltr; margin-top: 4px }
.slfs-cy .cy-gauge__ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; font-weight: 800 }
.slfs-cy .cy-overview { margin-top: 20px; padding: 14px 16px; background: #F8FAFC; border-radius: 12px }
.slfs-cy .cy-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-cy .cy-warn svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px }

/* ══ نمونه کامل ══ */
.slfs-cy .cy-story { margin-top: 24px; border: 1px solid var(--cy-border); border-radius: 20px; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.04); padding: 20px 22px }
.slfs-cy .cy-story__k { font-size: 12px; font-weight: 900; color: var(--cy-sec) }
.slfs-cy .cy-story__title { font-size: 18px; font-weight: 900; color: var(--cy-slate); margin: 2px 0 12px }
.slfs-cy .cy-story__text { font-size: 15.5px; line-height: 42px; color: #374151; text-align: justify }
.slfs-cy .cy-seg { border-bottom: 2px dashed #94A3B8; padding-bottom: 4px }
.slfs-cy .cy-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--cy-slate); color: #fff; font-size: 11px; font-weight: 900; vertical-align: 2px; margin-left: 5px }
.slfs-cy .cy-story__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #E2E8F0; font-size: 12.5px; font-weight: 800; color: var(--cy-slate) }
.slfs-cy .cy-story__next { font-size: 13px; color: var(--cy-sec); margin-top: 10px }

/* ══ مرحله به مرحله ══ */
.slfs-cy .cy-steps { margin-top: 0; display: flex; flex-direction: column }
.slfs-cy .cy-step { border: 1px solid var(--cy-border); border-radius: 18px; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.04); padding: 18px 20px; transition: box-shadow .3s; scroll-margin-top: 20px }
.slfs-cy .cy-step.is-flash { box-shadow: 0 0 0 4px rgba(51,65,85,.16) }
.slfs-cy .cy-step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px }
.slfs-cy .cy-step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--cy-slate); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 900; flex-shrink: 0 }
.slfs-cy .cy-step__title { font-size: 17px; font-weight: 900; color: var(--cy-slate) }
.slfs-cy .cy-step__ex { border-radius: 14px; background: var(--cy-navy-l); padding: 12px 14px; margin-bottom: 12px }
.slfs-cy .cy-step__ex-k { font-size: 11.5px; font-weight: 900; color: var(--cy-sec); margin-bottom: 2px }
.slfs-cy .cy-step__ex-v { font-size: 14.5px; font-weight: 800; color: var(--cy-navy); line-height: 27px }
.slfs-cy .cy-conn { height: 14px }
.slfs-cy .cy-conn span { display: none }
.slfs-cy .cy-levcard { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1.5px dashed var(--cy-amber); background: var(--cy-amber-l) }
.slfs-cy .cy-levcard .cy-lev__icon { width: 36px; height: 36px }
.slfs-cy .cy-levcard__k { font-size: 14px; font-weight: 900; color: #8A5A00; margin-bottom: 4px }
.slfs-cy .cy-loop { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1.5px dashed var(--cy-violet); background: var(--cy-violet-l) }
.slfs-cy .cy-loop__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--cy-violet); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.slfs-cy .cy-loop__icon svg { width: 18px; height: 18px }
.slfs-cy .cy-loop__k { font-size: 14px; font-weight: 900; color: var(--cy-violet); margin-bottom: 4px }

/* ══ ریسپانسیو ══ */
@media (max-width: 820px) {
    .slfs-cy .cy-main { grid-template-columns: 1fr }
    .slfs-cy .cy-svg { max-width: 340px }
}
@media (max-width: 768px) {
    .slfs-cy .cy-types { grid-template-columns: 1fr }
}
@media (max-width: 576px) {
    .slfs-cy .cy-p { font-size: 13.5px; line-height: 26px }
    .slfs-cy .cy-gauge__row { gap: 2px }
    .slfs-cy .cy-g { height: 14px; border-radius: 4px }
    .slfs-cy .cy-g__code { display: none }
    .slfs-cy .cy-story { padding: 16px 14px }
    .slfs-cy .cy-story__title { font-size: 16px }
    .slfs-cy .cy-story__text { font-size: 14px; line-height: 38px }
    .slfs-cy .cy-step { padding: 14px }
    .slfs-cy .cy-step__num { width: 36px; height: 36px; font-size: 17px }
    .slfs-cy .cy-step__title { font-size: 15.5px }
    .slfs-cy .cy-step__ex-v { font-size: 13.5px; line-height: 25px }
    .slfs-cy .cy-conn { padding-right: 31px }
    .slfs-cy .cy-levcard, .slfs-cy .cy-loop { padding: 14px }
}
