/* v8 stage 20 — Parsino mini-app look for the public pages (display only) */
body.pub{--tg-c:var(--load,#1f55c4);--tg-ln:#e6ebf4;--tg-sh:0 8px 24px rgba(40,60,110,.07);--tg-r:22px;background:#f7f9fc}
body.pub .pub-h{background:#fff!important;border-bottom:1px solid var(--tg-ln)!important;box-shadow:none!important;border-radius:0!important;color:var(--ink,#0f172a)!important}
body.pub .pub-h .lg-t,body.pub .pub-h .lg-t *{color:var(--ink,#0f172a)!important}
body.pub .pub-h .lg-t small{color:#8a97ad!important}
body.pub .pub-h .pub-q{display:none!important}
body.pub .pub-h .ph-ic,body.pub .pub-h .icon-btn,body.pub .pub-h .pub-login{background:#fff!important;color:#344876!important;border:1px solid var(--tg-ln)!important;border-radius:13px!important}
body.pub .pub-h .ph-ic svg,body.pub .pub-h .icon-btn svg,body.pub .pub-h .pub-login svg{stroke:#344876!important}
body.pub .pub-ttl{color:var(--ink,#0f172a)!important}
/* cards */
body.pub .card,body.pub article.ent,body.pub .hm-card,body.pub .hm-stat,body.pub .hm-filters,body.pub .hm-how,body.pub .hm-row{border-radius:var(--tg-r)!important;border:1px solid var(--tg-ln)!important;box-shadow:var(--tg-sh)!important;background:#fff}
body.pub article.ent{border-inline-start-width:1px!important}
body.pub article.ent::before{display:none!important}
body.pub .hm-banner,body.pub .hm-hero{border-radius:26px!important}
body.pub .btn{border-radius:14px!important;min-height:44px}
body.pub input:not([type=checkbox]):not([type=radio]),body.pub select,body.pub textarea{border-radius:14px!important;border:1px solid #dce3ef!important;min-height:48px}
/* page title banners become plain titles */
body.pub .pub-wsp>.ph{background:none!important;box-shadow:none!important;border:0!important;color:var(--ink,#0f172a)!important;padding:4px 2px!important;min-height:0!important}
body.pub .pub-wsp>.ph *{color:var(--ink,#0f172a)!important}
body.pub .pub-wsp>.ph h1{font-size:22px}
body.pub .pub-wsp>.ph p,body.pub .pub-wsp>.ph .gb-motif,body.pub .pub-wsp>.ph svg{display:none!important}
body.pub .pub-wsp .rail-nav{display:none!important}
/* tabs / view modes */
body.pub .tabs{flex-wrap:wrap!important;overflow:visible!important;gap:8px}
body.pub .tabs a,body.pub .tabs button{border-radius:12px!important}
body.pub .vw-bar{display:flex;flex-direction:column;gap:8px}
body.pub .vw-sw{display:flex!important;gap:4px;padding:4px;background:#fff;border:1px solid var(--tg-ln);border-radius:16px}
body.pub .vw-sw .vw-b{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;padding:9px 6px;border-radius:12px;font-size:12px;color:#64748b}
body.pub .vw-sw .vw-b span{display:none}
body.pub .vw-sw .vw-b.on{background:var(--tg-c);color:#fff;flex:2}
body.pub .vw-sw .vw-b.on span{display:inline}
body.pub .vw-tools{display:none!important}
/* bottom bar: floating pill, raised active icon */
@media(max-width:900px){
body.pub .gnav{left:12px!important;right:12px!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;border-radius:28px!important;border:1px solid var(--tg-ln)!important;background:#fff!important;box-shadow:0 14px 36px rgba(30,50,110,.18)!important}
body.pub .gnav a.on .nb-i,body.pub .gnav a.on>svg:first-child{background:var(--tg-c);color:#fff;border-radius:14px;transform:translateY(-12px) scale(1.1);box-shadow:0 0 0 5px #fff,0 10px 22px rgba(40,60,130,.28)}
body.pub .gnav a.on>span:last-child{margin-top:-10px;color:var(--tg-c)}
body.pub .pub-main{padding-bottom:110px}
}
/* login / register: compact top, plain form card */
body.pub .au-pic{min-height:0!important;padding:18px 20px!important;border-radius:0 0 28px 28px!important}
body.pub .au-pic .au-cap h2,body.pub .au-pic .au-cap p,body.pub .au-pic .gb-motif{display:none!important}
body.pub .au-pic .au-cap{padding:0}
body.pub .tg-more{display:block;width:100%;margin:10px 0 0;padding:12px;border:1px dashed #c9d4ea;border-radius:16px;background:#fff;color:var(--tg-c);font-weight:700;font-size:14px;cursor:pointer}
body.pub .tg-hide{display:none!important}
body.pub .pub-h .lg-t b{color:var(--tg-c)!important;-webkit-text-fill-color:currentColor!important;background:none!important}
body.pub .wrap.pub-wsp>.ph.ph.ph{background:none!important;background-image:none!important;box-shadow:none!important;border:0!important;padding:4px 2px 8px!important;min-height:0!important;overflow:visible}
body.pub .wrap.pub-wsp>.ph.ph.ph::before,body.pub .wrap.pub-wsp>.ph.ph.ph::after{display:none!important}
body.pub .wrap.pub-wsp>.ph.ph.ph,body.pub .wrap.pub-wsp>.ph.ph.ph *{color:var(--ink,#0f172a)!important;-webkit-text-fill-color:currentColor!important}
body.pub .wrap.pub-wsp>.ph.ph.ph h1{font-size:22px}
body.pub article.ent.ent{border:1px solid var(--tg-ln)!important;border-radius:var(--tg-r)!important}
body.pub .au .au-pic.au-pic{min-height:0!important;padding:16px 20px!important;border-radius:0 0 28px 28px!important}
body.pub .au .au-pic .au-cap h2,body.pub .au .au-pic .au-cap p,body.pub .au .au-pic .gb-motif{display:none!important}
/* stage 20 final: calmer guest pages */
body.pub .au .au-pic .au-cap>*:not(.au-brand),body.pub .au .au-pic .au-brand>*:not(.logo){display:none!important}
body.pub .au .au-pic.au-pic{padding:14px 20px!important}
body.pub .wrap.pub-wsp>.ph.ph.ph h1{display:none!important}
body.pub .wrap.pub-wsp>.ph.ph.ph:not(:has(a,button,.btn)){display:none!important}
body.pub .hm-banner .gb-motif,body.pub .hm-banner p{display:none!important}
body.pub .hm-banner{padding:20px!important;min-height:0!important}
body.pub .hm-banner h1,body.pub .hm-banner h2{font-size:22px;line-height:1.7}
body.pub .hm-row,body.pub .hm-row *{max-height:none}
body.pub .hm-stats{gap:8px}
body.pub .hm-stats .hm-stat{padding:10px 8px!important}
body.pub .tg-hm-more{margin-top:12px}
body.pub .au .au-pic.au-pic{max-height:96px!important;overflow:hidden!important;display:flex;align-items:center}
body.pub .au .au-pic .au-cap,body.pub .au .au-pic .au-brand{margin:0;padding:0}

/* stage 21: no nested vertical scrolling — the page always scrolls (phone), and inner boxes never trap the scroll (desktop) */
.sbox,#chat{overscroll-behavior:auto!important}
@media(max-width:900px){
  body .sbox,body .sbox:is(ol.tl,.tl,.feed,.notif-list),:is(.content,.pub-wsp) .kb-list.sbox,:is(.content.wsp,.pub-wsp.pub-vw) .kb-list.sbox{max-height:none!important;overflow-y:visible!important;box-shadow:none!important}
  body .sbox thead th{position:static}
  body #chat{max-height:none;overflow-y:visible}
}
body.pub .tg-pg{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 4px;padding:10px;background:#fff;border:1px solid var(--tg-ln,#e6ebf4);border-radius:20px;box-shadow:var(--tg-sh,none)}
body.pub .tg-pm{flex:1;text-align:center;min-width:0}
body.pub .tg-pt{display:block;font-size:13px;font-weight:800;color:#1d2b4d}
body.pub .tg-pd{display:flex;gap:5px;justify-content:center;margin-top:5px}
body.pub .tg-pd i{width:7px;height:7px;border-radius:50%;background:#d5deee}
body.pub .tg-pd i.on{width:20px;border-radius:5px;background:var(--tg-c,#1f55c4)}
body.pub .tg-pb{display:inline-flex;align-items:center;justify-content:center;gap:4px;border:1px solid var(--tg-ln,#e6ebf4);background:#fff;color:#344876;border-radius:14px;padding:0 14px;min-height:44px;font-weight:700;font-size:14px;cursor:pointer;flex:none}
body.pub .tg-pb.tg-pn{background:var(--tg-c,#1f55c4);color:#fff;border-color:transparent}
body.pub .tg-pb:disabled{opacity:.35;cursor:default}

/* ===== stage 25: intro text of sign-in / register cards as tick rows ===== */
.au-intro{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.au-intro li{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border-radius:16px;background:#f5f8fe;border:1px solid #e3eaf6;font-size:13.5px;line-height:1.9;color:#344876;text-align:start}
.au-intro li.first{background:linear-gradient(135deg,#eaf6ee,#f2faf5);border-color:#cfe9d8;color:#14532d;font-weight:800;font-size:14.5px}
.au-ck{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#fff;color:#1f55c4;box-shadow:0 1px 4px rgba(31,85,196,.12);margin-top:1px}
.au-intro li.first .au-ck{color:#16a34a}
.au-ck svg{width:17px;height:17px}
body.pub .card p,body.pub .small,body.pub .muted{text-align:start!important}
body.pub .fsec p.small,body.pub .fsec .hint,body.pub .fsec .help{background:#f5f8fe;border:1px solid #e3eaf6;border-radius:14px;padding:9px 12px;line-height:1.9;color:#476089}

/* ===== stage 26: guest home — search box and the three quick actions (mobile) ===== */
.hm-qt{display:none}
@media (max-width:900px){
  body.pub .hm-sq{display:grid!important;grid-template-columns:1fr auto;gap:10px 8px;padding:12px!important;border-radius:26px!important;background:linear-gradient(180deg,#fff,#f7faff)!important;border:1px solid #e3eaf6!important;box-shadow:0 10px 30px rgba(31,85,196,.12)!important}
  body.pub .hm-sq .hm-seg{grid-column:1/-1;display:flex;gap:4px;padding:5px;border-radius:18px;background:#eef2f9}
  body.pub .hm-sq .hm-seg label{flex:1}
  body.pub .hm-sq .hm-seg span{display:flex;align-items:center;justify-content:center;gap:6px;padding:12px 6px;border-radius:14px;font-size:14.5px;font-weight:800;color:#6b7a99}
  body.pub .hm-sq .hm-seg .i{width:17px;height:17px}
  body.pub .hm-sq .hm-seg input:checked+span{background:#fff;color:#0f2a5e;box-shadow:0 2px 8px rgba(15,42,94,.1)}
  body.pub .hm-sq .hm-qin{grid-column:1;min-height:56px;border-radius:18px;border:1.5px solid #dbe5f5;background:#f5f8fe;padding:0 12px;flex:none}
  body.pub .hm-sq .hm-qin input{border:0!important;box-shadow:none!important;background:transparent!important;padding:10px 0;font-size:14px}
  body.pub .hm-sq .hm-go{grid-column:2;flex:none;min-height:56px;padding:0 20px;border-radius:18px;font-size:14px;box-shadow:0 6px 14px rgba(31,85,196,.3)}
  body.pub .hm-sq .hm-go .i{display:none}
  .hm-qt{display:block;margin:18px 6px 0;font-weight:800;font-size:15px;color:#0f2a5e}
  body.pub .hm-qa{gap:10px;margin-top:10px}
  body.pub .hm-qa .qa{flex-direction:column;justify-content:center;text-align:center;gap:6px;padding:14px 10px 12px;border-radius:22px;box-shadow:0 4px 14px rgba(15,42,94,.06)}
  body.pub .hm-qa .qa>.i{display:none}
  body.pub .hm-qa .qa .ti{width:46px;height:46px;border-radius:15px}
  body.pub .hm-qa .qa .qx{display:block;line-height:1.5}
  body.pub .hm-qa .qa .qx b{display:block;font-size:14px;font-weight:800}
  body.pub .hm-qa .qa .qx small{display:block;font-size:11.5px;font-weight:600;color:#7a8aa8;margin-top:2px}
  body.pub .hm-qa .qa.c{grid-column:1/-1;flex-direction:row;text-align:start;gap:12px;padding:14px;box-shadow:0 10px 22px rgba(240,120,20,.3)}
  body.pub .hm-qa .qa.c .qx{flex:1}
  body.pub .hm-qa .qa.c .qx small{color:#ffe9d2}
  body.pub .hm-qa .qa.c>.i{display:block;width:18px;height:18px;color:#fff}
  body.pub .hm-qa .qa.q-clr{grid-column:auto}
}

/* ===== stage 28: «ظرفیت‌های ویژه» kind filter as three icon cards ===== */
.sp-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sp-t{display:block;background:#fff;border:1.5px solid #e3eaf6;border-radius:20px;padding:11px 4px 9px;text-align:center;box-shadow:0 4px 12px rgba(15,42,94,.05);color:#0f2a5e;text-decoration:none}
.sp-t .ic{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;margin:0 auto 6px;background:#eef3fc;color:#1f55c4}
.sp-t .ic svg{width:20px;height:20px}
.sp-t b{display:block;font-size:13.5px;font-weight:800}
.sp-t small{display:block;font-size:11px;color:#7a8aa8;margin-top:1px}
.sp-t.on{background:linear-gradient(135deg,#1f66d6,#0f2f6e);border-color:transparent;box-shadow:0 10px 20px rgba(31,85,196,.3);color:#fff}
.sp-t.on .ic{background:rgba(255,255,255,.2);color:#fff}.sp-t.on small{color:#cfe0ff}

/* ===== stage 30: guest home — clearance-fee calculator card ===== */
.hm-fee{display:flex;align-items:center;gap:12px;margin:12px 0;padding:14px;border-radius:22px;background:linear-gradient(135deg,#f6f1fd,#fff);border:1px solid #e4daf3;box-shadow:0 6px 18px rgba(91,63,148,.10);color:#0f2a5e;text-decoration:none}
.hm-fee .ti{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#8b6cc9,#5b3f94);color:#fff}
.hm-fee .ti .i{stroke:#fff}
.hm-fee .tx{flex:1;min-width:0;line-height:1.7}.hm-fee .tx b{display:block;font-size:14.5px;font-weight:800}.hm-fee .tx small{display:block;font-size:11.5px;color:#6b5a8a;font-weight:600}
.hm-fee .go{flex:none;background:#5b3f94;color:#fff;border-radius:12px;padding:9px 14px;font-weight:800;font-size:13px}

/* ===== stage 35: same type scale as the signed-in pages ===== */
body.pub .pub-wsp{font-size:14px;line-height:1.85;color:#1d2b4d}
body.pub .pub-wsp h2,body.pub .pub-wsp h3,body.pub .pub-wsp .card-h{font-size:16px;font-weight:800;line-height:1.6;color:#0f172a}
body.pub .pub-wsp .small{font-size:13px}
body.pub .pub-wsp .xs{font-size:12px}
body.pub .pub-wsp .muted{color:#64748b}
body.pub .pub-wsp label{font-size:13px;font-weight:700}

/* ===== stage 36: responsive hardening (guest pages) ===== */
body.pub .pub-wsp :is(p,li,dd,dt,span,a,b,h1,h2,h3,div){overflow-wrap:anywhere}
body.pub .pub-wsp :is(img,video,iframe,canvas){max-width:100%;height:auto}
body.pub .pub-wsp,body.pub .pub-wsp>*{min-width:0;max-width:100%}
@media(max-width:640px){body.pub .pub-wsp .grid:is(.g2,.g3,.g4){grid-template-columns:1fr!important}}

/* ===== stage 37: light text on dark backgrounds (guest pages) ===== */
body.pub .pub-wsp :is(.hero,.hm-hero,.sp-t.on,.btn-dark) :is(h1,h2,h3,p,b,strong,span,div,small,.sub,.xs,.small,.muted){color:#fff!important}

/* stage 70: the mascot of an empty list keeps its designed size on public pages (it filled the whole phone width) and
   reserves its box before it loads (aspect-ratio is set inline), so nothing jumps */
body.pub .masc .masc-img img{height:170px!important;width:auto!important;max-width:100%}
body.pub .masc-404 .masc-img img{height:230px!important}
