@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600&display=swap');
/* msdata — قالب واحد همه‌ی صفحه‌های خبر (کالا، کیش، انرژی، ارز، کلان). ۲۱ مهر ۱۴۰۵.
   (۲۱ مهر، صاحب کسب‌وکار) عرض ۱۲۴۰ چسبیده به راست؛ سمت چپ ستون ۴ تبلیغ ۱۶۰×۳۰۰ زیر تبلیغ اصلی.
   چیدمان صفحه‌ی خبر فقط اینجا عوض می‌شود؛ HTML هر خبر فقط متن و داده‌ی خودش را دارد.
   ردیف ۱: خبر | ستون کناری (هم‌قد خبر) — ردیف ۲: همیشه سه باکس فهرست خبر */
body .npage{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:10px;max-width:1250px;margin:10px 0 0 auto;padding:0 10px;align-items:stretch;width:100%}
body .npage>main{min-width:0}body .npage>main .news{margin:0;height:100%}
body .npage>main .news article{padding:18px 26px;font-size:13.5px;line-height:2.2}
body .npage>main .news p{margin:0 0 12px}body .npage>main .news .lead{font-size:14px}body .npage>main .news .sub{font-size:11px;margin:0 0 10px}
body .npage>.as2{display:flex;flex-direction:column;gap:10px;min-width:0}body .npage>.as2 .box{margin:0}body .npage>.as2>section.box:last-of-type{flex:1}
body .tri.nw{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:1250px;margin:10px 0 0 auto;padding:0 10px;width:100%;align-items:stretch}
body .tri.nw>.box{margin:0;min-width:0}
@media(max-width:1000px){body .npage{grid-template-columns:1fr}body .npage>.as2{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}body .tri.nw{grid-template-columns:1fr 1fr}body .tri.nw>.box:nth-child(3){grid-column:1/-1}}
@media(max-width:760px){body .tri.nw{grid-template-columns:1fr}body .tri.nw>.box:nth-child(3){grid-column:auto}body .npage>main .news article{padding:12px 14px;font-size:13px}}
/* ۲۱ مهر (صاحب کسب‌وکار): جدول «قیمت سایر تولیدکننده‌ها» از ستون کناری خبر حذف شد */
body .npage>.as2 .ptb{display:none}
/* ستون تبلیغ چپ (۲۱ مهر، صاحب کسب‌وکار): ۴ کپی از همان تبلیغ بالای صفحه (.adx)، عمودی؛ لبه‌ی چپ هم‌تراز تبلیغ بالا، عرض ثابت ۱۶۰ (استاندارد)؛ هرگز به ستون کناری نچسبد (حداقل ۲۰px)؛ بالا و پایین هم‌تراز باکس‌های کنار */
.nad{display:none}
@media(min-width:1430px){.nad{display:flex;flex-direction:column;gap:10px;position:absolute;z-index:1}
.nad>.adx{flex:1 1 0;min-height:0;margin:0!important;width:100%;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center;gap:12px;padding:16px 10px!important;position:relative}
.nad>.adx .adt{display:flex;flex-direction:column;gap:4px;align-items:center;text-wrap:balance}.nad>.adx .adt span{text-wrap:balance;max-width:150px}.nad>.adx .adg{width:110px;height:36px}.nad>.adx .adc{align-self:center!important;margin:0 auto!important;text-align:center}}
/* جدول داخل خبر با رنگ متضاد ملایم: تم تیره ⇒ جدول روشن، تم روشن ⇒ جدول تیره */
body .npage .news .msf-tbl{background:#dfe3e9!important;color:#1c1e21!important;border:0!important;box-shadow:0 6px 18px rgba(0,0,0,.28)!important;border-radius:8px}
body .npage .news .msf-tbl *{color:inherit}body .npage .news .msf-tbl th{color:#4a525d!important;border-color:rgba(0,0,0,.12)!important}
body .npage .news .msf-tbl td{border-color:rgba(0,0,0,.08)!important}body .npage .news .msf-tbl .g{color:#13804a!important}body .npage .news .msf-tbl .r{color:#c0352b!important}
body .npage .news .msf-tbl figcaption,body .npage .news .msf-tbl .src,body .npage .news .msf-tbl .mut{color:#5b636e!important}
:root[data-theme="light"] body .npage .news .msf-tbl{background:#2b2f36!important;color:#e9ebee!important;box-shadow:0 6px 18px rgba(20,40,80,.22)!important}
:root[data-theme="light"] body .npage .news .msf-tbl th,:root[data-theme="light"] body .npage .news .msf-tbl figcaption,:root[data-theme="light"] body .npage .news .msf-tbl .src,:root[data-theme="light"] body .npage .news .msf-tbl .mut{color:#a9b0ba!important;border-color:rgba(255,255,255,.12)!important}
:root[data-theme="light"] body .npage .news .msf-tbl td{border-color:rgba(255,255,255,.08)!important}:root[data-theme="light"] body .npage .news .msf-tbl .g{color:#3fcf8e!important}:root[data-theme="light"] body .npage .news .msf-tbl .r{color:#ff7a6e!important}
/* (۲۱ مهر) ستون کناری تا پایین خبر؛ ردیف‌های «روند قیمت» جای خالی را پر می‌کنند */
body .npage>.as2>section.box:last-of-type{display:flex;flex-direction:column}body .npage>.as2 .spk{flex:1 1 auto;min-height:40px}

/* قالب نوین خبر روی پوسته‌ی واقعی msdata — آبی برند (#4d9bf0 تیره / #1a5fc8 روشن) */
:root{--acc:#4d9bf0;--acct:#1f2a38}:root[data-theme="light"]{--acc:#1a5fc8;--acct:#eef4fd}
.npage .news,.npage .as2>.box,.tri.nw>.box,.nmc>.box,.hrow>.adx,.nad>.adx{border-radius:8px;overflow:hidden}
.npage .news article{padding:24px 34px 20px!important}
.nkick{font-size:12px;font-weight:700;display:flex;gap:6px;align-items:center;margin:0 0 6px}.nkick a{color:var(--acc)}.nkick i{font-style:normal;color:var(--muted)}
.npage .news article h1.nh1{font:700 30px/1.55 'IBM Plex Sans Arabic',Vazirmatn,sans-serif;margin:0 0 8px;letter-spacing:-.2px}
.npage .news article .ndek{font:500 17px/1.9 'Noto Naskh Arabic',Vazirmatn,serif;color:var(--muted);margin:0 0 14px}
.nby{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line2);border-bottom:1px solid var(--line2);padding:10px 0;margin:0 0 12px}
.nlg svg{width:36px;height:36px;display:block}.nbt{flex:1;min-width:0}.nbt>div:first-child{display:flex;flex-wrap:wrap;gap:2px 14px;font-size:11.5px;color:var(--muted)}.nbt b{color:var(--text);font-size:12.5px}
.nai{font-size:11px;color:var(--muted);margin-top:2px}
.nsh{display:flex;gap:6px}.nsh a{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--muted)}.nsh a:hover{color:var(--acc);border-color:var(--acc)}
.nchips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.nchips a{border:1px solid var(--line);background:var(--boxhead);border-radius:999px;padding:2px 12px;font-size:12px;color:var(--text)}.nchips a:hover{border-color:var(--acc);text-decoration:none}
.nkp{background:var(--acct);border-right:3px solid var(--acc);border-radius:6px;padding:10px 16px;margin:0 0 18px}.nkh{font:700 13px 'IBM Plex Sans Arabic',Vazirmatn;margin:0 0 4px}.nkp ul{margin:0;padding-right:18px}.nkp li{font:500 14.5px/1.95 'Noto Naskh Arabic',Vazirmatn,serif}
.npage .news article p{font:400 17px/2.15 'Noto Naskh Arabic',Vazirmatn,serif!important}.npage .news article p.lead{font-weight:600!important}
/* ستون کناری تا پایین خبر؛ ردیف‌های روند قیمت ارتفاع را پر می‌کنند */
body .npage{align-items:stretch!important}body .npage>.as2{display:flex!important;flex-direction:column}body .npage>.as2>section.box{flex:1;display:flex;flex-direction:column}
body .npage>.as2 .spk{flex:1;min-height:40px}
.nmore{max-width:1250px;margin:12px 0 0 auto;padding:0 10px}.nmh{font:700 16px 'IBM Plex Sans Arabic',Vazirmatn;margin:0 0 8px}.nmc{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.nmc a.box{padding:12px 14px;display:flex;flex-direction:column;gap:5px;color:var(--text)}.nmc a.box:hover{border-color:var(--acc);text-decoration:none}.nmc span{font-size:11px;color:var(--acc);font-weight:700}.nmc b{font:600 14.5px/1.85 'Noto Naskh Arabic',Vazirmatn,serif}
.tri.nw li a{color:var(--text)!important}.tri.nw li a:hover{color:var(--acc)!important}
.nprog{position:fixed;top:0;right:0;height:3px;background:var(--acc);width:0;z-index:99}
.hrow{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:stretch}.hrow>*{margin:0!important;min-width:0}
.nfoot{margin:16px 0 0;background:var(--box);border-top:1px solid var(--line)}
.nfi{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,3fr) auto;gap:32px;padding:26px 18px;max-width:1250px;margin:0 0 0 auto}
.nlogo{display:flex;align-items:center;gap:10px}.nlogo svg{width:46px;height:46px}.nlogo span{font-weight:800;font-size:28px;letter-spacing:.3px}
.nfb p{color:var(--muted);font-size:12px;margin:12px 0 0;line-height:2.1}
.nfc{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.nfc h4{margin:0 0 4px;font-size:12.5px}.nfc a{display:block;font-size:11.5px;line-height:2.2;color:var(--muted)}.nfc a:hover{color:var(--acc)}
.nfx{display:flex;flex-direction:column;gap:8px}.nfx a{border:1px solid var(--line);border-radius:999px;padding:3px 14px;font-size:11.5px;color:var(--text);white-space:nowrap;text-align:center}.nfx a:hover{border-color:var(--acc);text-decoration:none}
.nleg{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 14px;border-top:1px solid var(--line);padding:9px 18px;font-size:10.5px;color:var(--muted)}
@media(max-width:1000px){.nfi{grid-template-columns:1fr}.nfx{flex-direction:row;flex-wrap:wrap}.nmc{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.hrow{grid-template-columns:1fr}.npage .news article{padding:16px 14px!important}.npage .news article h1.nh1{font-size:22px}.npage .news article .ndek{font-size:15.5px}.npage .news article p{font-size:16px!important;line-height:2.05!important}.nmc{grid-template-columns:1fr}.nfc{grid-template-columns:1fr 1fr}.nby{flex-wrap:wrap}.nsh{margin-right:auto}}
.nsh details.shm{position:relative}.nsh .shb{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--muted);cursor:pointer;list-style:none}.nsh .shb::-webkit-details-marker{display:none}.nsh .shb svg{width:16px;height:16px;fill:currentColor}.nsh .shb:hover{color:var(--acc);border-color:var(--acc)}
.nsh details.shm>*:not(summary){position:absolute;left:0;top:40px;z-index:30}
.nshare{margin-top:14px;border-top:1px dashed var(--line);padding-top:12px}.ntags .tg{border-radius:999px!important}

/* (۲۱ مهر) اصلاحات صاحب کسب‌وکار */
.nsec-t{font:800 26px/1.5 Vazirmatn;color:var(--text)}
.nchips .nchart{border-color:var(--acc)!important;color:var(--acc)!important;font-weight:700}
.nmc b{font:700 15.5px/1.9 Vazirmatn,sans-serif!important}
.tri.nw>.box{display:flex;flex-direction:column}.tri.nw>.box>ul{flex:1;display:flex;flex-direction:column;justify-content:flex-start}
.nlogo span{color:var(--text)}.nlogo span i{font-style:normal}.nlogo span{color:#4d9bf0}.nlogo span i{color:var(--text)}
:root[data-theme="light"] .nlogo span{color:#1a5fc8}

.box.head .meta.mut{justify-content:flex-start!important;gap:0!important}
.nsh .ncp.ok{color:var(--green);border-color:var(--green)}
/* موبایل: ردیف نویسنده مرتب (تاریخ‌ها نشکنند، دکمه‌ها در خط جدا) */
.nbt span{white-space:nowrap}
@media(max-width:760px){.nby{flex-wrap:wrap;gap:8px 10px}.nbt{flex:1 1 calc(100% - 48px)}.nbt>div:first-child{gap:2px 10px}.nsh{width:100%;justify-content:flex-start;padding-right:46px;margin:0!important}}

/* (۲۲ مهر) ردیف فهرست خبر همیشه یک‌خطی (ارتفاع استاندارد)؛ تیتر بلند با «…» */
.tri.nw>.box>ul>li{min-width:0}.tri.nw>.box>ul>li>a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block}

/* (۲۸ مهر) کناره‌ی «روند قیمت این کالا و هم‌گروه‌ها»: نمودارچه‌ها هم‌قد ثابت (کش نمی‌آیند)؛ جای خالی با «خبرهای دیگر همین تالار» در ردیف ۲۴px پر می‌شود */
body .npage>.as2 .spk{flex:0 0 auto!important;height:58px;min-height:0}
body .npage>.as2 .asl{list-style:none;margin:0;padding:4px 12px;border-top:1px solid var(--line2);flex:1 1 0;min-height:0;overflow:hidden}
body .npage>.as2 .asl .ah{height:28px;line-height:28px;font-size:11px;font-weight:700;color:var(--muted)}
body .npage>.as2 .asl li{display:flex;gap:8px;height:24px;line-height:23px;border-bottom:1px solid var(--line2);font-size:11.5px}
body .npage>.as2 .asl li a{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
body .npage>.as2 .asl li time{color:var(--muted);font-size:10.5px;white-space:nowrap}
body .npage>.as2 .asl li[hidden]{display:none}
@media(max-width:900px){body .npage>.as2 .asl{flex:none}}
