/* v8.0 stage 47 — راهنمای مستر تلکس (illustrated guide) */
.g-wrap{max-width:760px;margin:0 auto;padding:6px 0 40px;display:flex;flex-direction:column;gap:16px}
.g-back{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--brand2)}
.g-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;background:linear-gradient(135deg,var(--brand),var(--brand2));border-radius:20px;padding:22px 20px 0;color:#fff;overflow:hidden}
.g-hero-t{padding-bottom:22px;flex:1;min-width:0}
.g-hero h1{font-size:22px;line-height:1.5;color:#fff;margin:6px 0 8px}
.g-hero p{font-size:14px;line-height:1.9;color:#E8F0FB;margin:0}
.g-wrap img.g-ch{width:auto!important;max-width:none!important;display:block;flex:none;object-fit:contain}
.g-wrap img.g-hero-m{height:170px!important;margin-bottom:-2px;filter:drop-shadow(0 6px 12px rgba(0,0,0,.25))}
.g-pdf{display:inline-flex!important;align-items:center;gap:6px;margin-top:12px}
.g-wrap .g-banner{width:100%!important;height:auto!important;border-radius:14px;display:block}
.g-chip{display:inline-block;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);color:#fff;font-size:12px;font-weight:700;border-radius:999px;padding:3px 12px}
.g-toc{display:flex;flex-wrap:wrap;gap:8px}
.g-toc a{background:#fff;border:1px solid #D7E2F2;color:var(--brand);font-size:13px;font-weight:700;border-radius:999px;padding:8px 14px;line-height:1.4}
.g-toc a:hover{background:var(--role-bg);border-color:var(--brand2)}
.g-sec{padding:18px 16px;display:flex;flex-direction:column;gap:14px;scroll-margin-top:84px}
.g-sec h2{display:flex;align-items:center;gap:10px;font-size:18px;line-height:1.6;color:var(--brand);margin:0}
.g-n{flex:none;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;font-size:15px;display:grid;place-items:center;font-weight:800}
.g-sec p{font-size:14px;line-height:2;margin:0;color:#2A3A52}
.g-sec p+p{margin-top:8px}
.g-say{display:flex;align-items:flex-end;gap:10px}
.g-wrap img.g-say-ch{height:112px!important}
.g-bub{position:relative;flex:1;min-width:0;background:var(--role-bg,#E6F0FC);border:1px solid var(--role-bd,#C6D6EE);border-radius:16px 16px 4px 16px;padding:12px 14px}
.g-bub::after{content:"";position:absolute;bottom:14px;right:-7px;width:12px;height:12px;background:inherit;border-right:1px solid var(--role-bd,#C6D6EE);border-top:1px solid var(--role-bd,#C6D6EE);transform:rotate(45deg)}
.g-bub p{margin:0}.g-bub p+p{margin-top:8px}
.g-fig{margin:0;display:flex;flex-direction:column;gap:10px;align-items:center}
.g-shot{width:100%;max-width:340px;border-radius:18px;border:1px solid #D7E2F2;box-shadow:0 8px 24px rgba(10,46,92,.14);overflow:hidden;background:#fff}
.g-wrap .g-shot img{display:block;width:100%!important;height:auto!important}
.g-fig figcaption{width:100%}
.g-fig ol{list-style:none;counter-reset:c;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.g-fig li{counter-increment:c;position:relative;padding-right:36px;font-size:13.5px;line-height:1.9;color:#2A3A52}
.g-fig li::before{content:counter(c,persian);position:absolute;right:0;top:2px;width:25px;height:25px;border-radius:50%;background:#F28C1B;color:#fff;font-weight:800;font-size:13px;display:grid;place-items:center;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.g-box{background:#F7F9FD;border:1px solid #DCE5F3;border-radius:14px;padding:14px 14px 10px}
.g-box>b{display:block;color:var(--brand);font-size:14.5px;margin-bottom:8px}
.g-sec b{display:inline!important;font-weight:800;color:inherit}
.g-box>b{display:block!important;color:var(--brand)}
.g-box ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.g-box li{position:relative;padding-right:22px;font-size:13.5px;line-height:1.95;color:#2A3A52}
.g-box li::before{content:"";position:absolute;right:2px;top:11px;width:9px;height:9px;border-radius:3px;background:var(--accent)}
.g-tip{display:flex;gap:10px;align-items:flex-start;border-radius:14px;padding:12px 14px;font-size:13.5px;line-height:1.95}
.g-tip svg{flex:none;margin-top:5px}
.g-tip.g-tip{background:#EAF6EE;border:1px solid #BFE3CB;color:#16553A}
.g-tip.g-warn{background:#FFF6E5;border:1px solid #F3D9A0;color:#6B4A07}
.g-more{font-size:13px}
.g-roles{display:grid;grid-template-columns:1fr;gap:12px}
.g-role{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #D7E2F2;border-radius:16px;padding:12px;color:inherit}
.g-role-a{display:grid;grid-template-columns:90px 1fr;grid-template-areas:"m t" "m d" "m e";column-gap:12px;align-items:center;color:inherit}
.g-role .g-rm{grid-area:m}.g-wrap .g-role img.g-rm{height:104px!important}
.g-pdf-sm{justify-content:center;margin:0!important}
.g-role b{grid-area:t;color:var(--brand);font-size:15.5px}
.g-role b i{font-style:normal;font-size:11px;background:var(--accent);color:#fff;border-radius:999px;padding:2px 8px;margin-right:6px}
.g-role span{grid-area:d;font-size:13px;line-height:1.8;color:#4A5B75}
.g-role em{grid-area:e;font-style:normal;font-size:13px;font-weight:800;color:var(--brand2)}
.g-role.is-me{border-color:var(--accent);box-shadow:0 0 0 3px rgba(240,124,30,.15)}
.g-path{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0;position:relative}
.g-path li{display:flex;gap:12px;align-items:flex-start;position:relative;padding-bottom:16px}
.g-path li:not(:last-child)::after{content:"";position:absolute;right:15px;top:34px;bottom:2px;width:2px;background:#D2DDF0}
.g-pn{flex:none;width:32px;height:32px;border-radius:50%;background:var(--brand2);color:#fff;font-weight:800;display:grid;place-items:center;z-index:1}
.g-path li.is-pay .g-pn{background:var(--accent)}
.g-path b{display:block;font-size:14px;color:var(--brand);line-height:1.7}
.g-path small{font-size:12.5px;color:#5B6B84}
.g-path li.is-pay small{color:#B45309;font-weight:800}
.g-cta{display:flex;flex-wrap:wrap;gap:10px}
@counter-style persian{system:numeric;symbols:"۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹"}
@media(min-width:720px){.g-roles{grid-template-columns:repeat(3,1fr)}.g-role-a{grid-template-columns:1fr;grid-template-areas:"m" "t" "d" "e";text-align:center;justify-items:center;row-gap:6px}.g-hero h1{font-size:26px}.g-sec{padding:22px 24px}}
.g-note{font-style:normal;color:#8A5A00;font-size:12.5px}

.g-figs{display:flex;flex-direction:column;gap:18px}
@media(min-width:720px){.g-figs{flex-direction:row;align-items:flex-start;justify-content:space-around}.g-figs .g-fig{flex:1;min-width:0}}

/* home-page guide card (v8.0 stage 47) */
.gh{display:flex;align-items:center;gap:14px;margin:18px 0;background:linear-gradient(135deg,#0A2E5C,#1E5AA8);border-radius:22px;padding:14px 16px;color:#fff;box-shadow:0 8px 22px rgba(10,46,92,.22);position:relative;overflow:hidden}
.gh::after{content:"";position:absolute;left:-40px;top:-40px;width:160px;height:160px;border-radius:50%;background:rgba(255,255,255,.07)}
.gh img.gh-ch{flex:none;height:128px!important;width:auto!important;max-width:none!important;display:block;filter:drop-shadow(0 6px 10px rgba(0,0,0,.3));position:relative;z-index:1}
.gh-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;position:relative;z-index:1}
.gh-t small{font-size:11.5px;font-weight:700;color:#FFD9A8}
.gh-t b{font-size:18px;line-height:1.5;color:#fff}
.gh-t>p{font-size:12.5px;line-height:1.85;color:#DCE8FA;margin:0}
.gh-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.gh-chips a{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:4px 12px;font-size:12px;font-weight:700;color:#fff;text-decoration:none}.gh-chips a:hover{background:#fff;color:var(--brand)}
.gh-go{display:none;flex:none;align-items:center;gap:6px;background:var(--accent);color:#fff;font-weight:800;font-size:14px;border-radius:14px;padding:11px 18px;position:relative;z-index:2;text-decoration:none}
@media(min-width:720px){.gh{padding:18px 28px;gap:24px}.gh img.gh-ch{height:150px!important}.gh-t b{font-size:22px}.gh-t>p{font-size:14px}.gh-go{display:inline-flex}}
@media(max-width:719px){.gh-go{display:inline-flex;position:absolute;left:12px;bottom:12px;padding:7px 12px;font-size:12.5px}.gh-t{padding-bottom:34px}}
.g-role-b{display:flex;gap:8px}.g-role-b .btn{flex:1;justify-content:center;margin:0!important;display:inline-flex;align-items:center;gap:6px}
.g-faq{display:flex;flex-direction:column;gap:8px}
.g-faq details{background:#F7F9FD;border:1px solid #DCE5F3;border-radius:14px;padding:0 14px}
.g-faq summary{cursor:pointer;list-style:none;padding:12px 0;font-weight:800;font-size:14px;line-height:1.8;color:var(--brand);display:flex;justify-content:space-between;gap:10px;align-items:center}
.g-faq summary::-webkit-details-marker{display:none}
.g-faq summary::after{content:"+";flex:none;width:24px;height:24px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:17px;line-height:1}
.g-faq details[open] summary::after{content:"−"}
.g-faq details p{padding:0 0 12px;font-size:13.5px;line-height:2;color:#2A3A52;margin:0}
