@font-face{font-family:IranYekan;src:url('../fonts/iranyekan/IranYekan-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:IranYekan;src:url('../fonts/iranyekan/IranYekan-Medium.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:IranYekan;src:url('../fonts/iranyekan/IranYekan-Bold.ttf') format('truetype');font-weight:700;font-display:swap}

:root{--mag-body:16px;--mag-entry-body:14px;--mag-h1:26px;--mag-h2:22px;--mag-h3:19px;--mag-entry-h2:20px;--mag-entry-h3:17px;--mag-section:20px;--mag-card:16px;--mag-nav:14px;--mag-meta:12px;--mag-footer:14px;--mag-support:13px}
body,button,input,textarea,select{font-family:IranYekan,Tahoma,sans-serif}
body{font-size:var(--mag-body)}
.mag-icon{display:block;width:24px;height:24px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.topic-menu__list li a{font-size:var(--mag-nav);gap:11px}
.topic-icon{width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center;color:#343a3e;font-size:0}
.topic-icon .mag-icon{width:20px;height:20px}
.topic-menu__list li.current-menu-item .topic-icon,.topic-menu__list li.current-menu-ancestor .topic-icon{color:#6f8e20}
.shop-link{font-size:var(--mag-nav);gap:8px}
.shop-link .mag-icon{width:20px;height:20px}
.text-link{display:inline-flex;align-items:center;gap:6px}
.text-link .mag-icon,.carousel-controls .mag-icon{width:20px;height:20px}
.carousel-controls button{display:grid;place-items:center;font-size:0}
.compact-rail>a,.compact-rail button{font-size:0}
.compact-rail .mag-icon{width:22px;height:22px}
.mobile-header .mag-icon{width:22px;height:22px}
.menu-toggle{gap:0;padding:0}
.drawer-brand{height:80px}
.nav-brand,.drawer-brand{background:transparent}
.drawer-brand img{width:145px;max-height:58px}
.drawer-close{position:absolute;top:12px;left:12px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:0;color:var(--ink);font-size:0}
.drawer-close .mag-icon{width:22px;height:22px}
.mobile-drawer .topic-menu__list li a{height:50px;gap:11px;font-size:15px}
.drawer-info>a{display:flex;align-items:center;gap:10px;min-height:50px;font-size:14px}
.drawer-info .mag-icon{width:20px;height:20px}
.section-heading h2{font-size:var(--mag-section)}
.story-card__body{min-height:0}
.story-card__body{flex:1}
.story-card h3,.story-row h3{font-size:var(--mag-card);line-height:1.65;overflow-wrap:anywhere}
.story-card h3{flex:1}
.story-meta,.category-label,.breadcrumb,.article-meta{font-size:var(--mag-meta)}
.article-top,.article-layout,.article-main,.article-content,.entry-content{min-width:0}
.article-layout--no-related{grid-template-columns:minmax(0,1fr)}
.article-header h1{font-size:var(--mag-h1);line-height:1.65;margin:4px 0 8px;overflow-wrap:anywhere;word-break:normal}
.article-meta{gap:8px;line-height:1.5}
.article-meta .author-avatar img{width:32px;height:32px}
.share-row .copy-link{display:inline-flex;align-items:center;gap:7px;text-decoration:none}
.share-row .copy-link .mag-icon{width:18px;height:18px}
.article-cover{display:flex;flex-direction:column;align-items:center;width:100%;max-width:100%;margin:0 auto 16px}
.article-cover img{display:block;width:auto;height:auto;max-width:100%;max-height:480px;object-fit:contain;margin-inline:auto}
.article-cover figcaption{width:100%;text-align:center;font-size:var(--mag-meta)}
.toc{margin:16px 0;padding:0 14px}
.toc summary{display:flex;align-items:center;min-height:46px;font-size:14px;line-height:1.45}
.toc[open]{padding-bottom:10px}
.entry-content{max-width:820px;margin:16px 0 0 auto;font-size:var(--mag-entry-body);line-height:1.9;text-align:right;direction:rtl;overflow-wrap:anywhere}
.entry-content p,.entry-content li{font-size:var(--mag-entry-body);line-height:1.9}
.entry-content p{margin:0 0 18px}
.entry-content h2{font-size:var(--mag-entry-h2);line-height:1.7;margin:32px 0 14px;scroll-margin-top:28px}
.entry-content h3{font-size:var(--mag-entry-h3);line-height:1.7;margin:30px 0 14px;scroll-margin-top:28px}
.entry-content ul,.entry-content ol{margin:0 0 18px}
.entry-content li{margin:6px 0}
.entry-content figure{max-width:100%;margin:26px auto}
.entry-content figure img{display:block;width:auto;height:auto;max-width:100%;margin-inline:auto}
.entry-content .alignwide,.entry-content .alignfull{width:auto!important;max-width:100%!important;margin-inline:auto!important}
.entry-content .wp-block-image{max-width:100%;margin-inline:auto}
.entry-content .wp-block-image img{width:auto;height:auto;max-width:100%}
.entry-content .wp-block-table,.entry-content .table-scroll{display:block;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.entry-content table{min-width:560px}
.comment-count,.comment-form label{font-size:14px}
.comment-notes,.comment-form-cookies-consent label,.comment-form .comment-form-comment label,.comment-form .comment-form-author label,.comment-form .comment-form-email label{font-size:13px;line-height:1.6}
.comment-form input[type=text],.comment-form input[type=email],.comment-form textarea{font:400 14px/1.6 IranYekan,Tahoma,sans-serif}
.comment-form .form-submit input{font:700 14px/1.4 IranYekan,Tahoma,sans-serif}
.back-top{width:42px;height:42px;display:grid;place-items:center}
.back-top .mag-icon{width:20px;height:20px}
.latest-layout:has(.home-sidebar:empty){grid-template-columns:minmax(0,1fr)}
.home-sidebar:empty{display:none}

.site-footer{background:#202224;color:#f4f5f5;padding:36px 32px 0;margin-top:56px}
.footer-inner{max-width:1600px;margin:0 auto;display:block}
.footer-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(400px,440px);grid-template-areas:'navigation newsletter';gap:44px;align-items:start}
.footer-navigation{grid-area:navigation;display:grid;grid-template-columns:160px minmax(0,1fr);gap:24px;align-items:center}
.footer-about img{display:block;width:148px;height:auto;max-height:none;object-fit:contain;background:none;padding:0;border-radius:0}
.footer-about p{margin:8px 0 0;color:#c7cbce;font-size:var(--mag-support);line-height:1.8}
.footer-links{display:block;color:#eef0f1;font-size:var(--mag-footer)}
.footer-links ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:10px 22px}
.footer-links li{margin:0}
.footer-links a{font-size:var(--mag-footer);line-height:1.7;color:#eef0f1}
.footer-links a:hover,.footer-social a:hover{color:var(--green)}
.footer-newsletter{grid-area:newsletter;width:100%;max-width:440px}
.footer-newsletter h2{font-size:18px;line-height:1.6;margin:0 0 6px;color:#fff}
.footer-newsletter>p{font-size:var(--mag-support);line-height:1.7;color:#c7cbce;margin:0 0 12px}
.newsletter-fields{display:flex;gap:8px;direction:rtl}
.newsletter-fields input{direction:ltr;text-align:left;min-width:0;width:280px;flex:0 1 280px;height:44px;padding:0 12px;border:1px solid #5b6063;border-radius:6px;background:#292d30;color:#f2f3f4;font:400 14px/1.4 IranYekan,Tahoma,sans-serif}
.newsletter-fields input::placeholder{color:#c2c6c9;opacity:1}
.newsletter-fields button{height:44px;flex:0 0 88px;border:0;border-radius:6px;background:var(--green);color:#1d2511;font:700 14px/1.4 IranYekan,Tahoma,sans-serif}
.newsletter-fields button{cursor:pointer}
.newsletter-fields button:hover{filter:brightness(.96)}
.newsletter-fields button:focus-visible{outline:3px solid #c6e88a;outline-offset:3px}
.newsletter-consent{display:flex;align-items:flex-start;gap:8px;margin:10px 0 0;color:#c7cbce;font-size:12px;line-height:1.6}
.newsletter-consent input{width:16px;height:16px;flex:0 0 16px;margin:2px 0 0;accent-color:var(--green)}
.newsletter-consent a{color:#d4eb9b;text-decoration:underline;text-underline-offset:2px}
.newsletter-status{margin:8px 0 0;color:#c7cbce;font-size:12px;line-height:1.6}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:28px;padding:14px 0;border-top:1px solid #ffffff29}
.copyright{margin:0;color:#c7cbce;font-size:var(--mag-support);line-height:1.6}
.footer-social{display:flex;align-items:center;gap:12px}
.footer-social a{display:grid;place-items:center;color:#e5e8e9}
.footer-social .mag-icon{width:20px;height:20px}

@media(min-width:1200px){body.drawer-open .mobile-drawer{display:block;position:fixed;right:0;top:24px;bottom:24px;width:min(86vw,360px);height:auto;max-height:calc(100vh - 48px);overflow-y:auto;z-index:41;background:#fff;box-shadow:-6px 0 24px #0002;border-radius:6px}body.drawer-open .drawer-backdrop{display:block;position:fixed;inset:0;z-index:40;background:#1119}}
@media(max-width:1199px){.section-heading h2{font-size:18px}.topic-menu__list li a{font-size:15px}.story-card h3,.story-row h3{font-size:15px}.article-layout{display:block}.article-main{width:100%;min-width:0}.article-sidebar{display:none}.related-mobile{display:block}}
@media(max-width:767px){
  :root{--mag-h1:21px;--mag-h2:19px;--mag-h3:17px;--mag-entry-body:13px;--mag-entry-h2:17px;--mag-entry-h3:15px;--mag-section:18px;--mag-card:15px;--mag-nav:15px}
  .site-shell{padding-inline:16px}
  .article-top,.article-layout,.article-main,.article-content,.entry-content{width:100%;max-width:100%;min-width:0}
  .article-layout{display:block}
  .article-cover{width:100%;max-width:100%;margin:0 0 16px;padding:0}
  .article-cover img{width:auto;max-width:100%;max-height:480px;margin-inline:auto}
  .article-header h1{margin:4px 0 8px}
  .article-meta{gap:6px 8px;flex-wrap:wrap}
  .entry-content{margin-top:14px}
  .entry-content .alignwide,.entry-content .alignfull{width:auto!important;max-width:100%!important;margin-inline:auto!important}
  .site-footer{margin-top:40px;padding:28px 18px 0}
  .footer-main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'brand' 'newsletter' 'links';gap:24px}
  .footer-navigation{display:contents}
  .footer-about{grid-area:brand}
  .footer-about img{width:132px}
  .footer-newsletter{grid-area:newsletter;max-width:none}
  .footer-newsletter h2{font-size:17px;margin-bottom:4px}
  .footer-newsletter>p{margin-bottom:10px}
  .newsletter-fields{display:flex;flex-direction:column;gap:12px}
  .newsletter-fields input,.newsletter-fields button{width:100%;height:44px;flex:0 0 44px}
  .footer-links{grid-area:links}
  .footer-links ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
  .footer-bottom{flex-direction:column;align-items:stretch;gap:18px;margin-top:24px;padding:0 0 16px;border-top:0}
  .footer-social{order:1}
  .copyright{order:2;border-top:1px solid #ffffff29;padding-top:14px}
  .back-top{bottom:82px;left:14px;width:42px;height:42px}
  .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:8px}
}
@media(max-width:360px){.footer-links ul{column-gap:10px}.footer-links a{overflow-wrap:anywhere}.article-meta{column-gap:6px}}
.home-title{margin:0 0 8px;color:var(--ink);font-size:var(--mag-section);font-weight:700;line-height:1.65;text-align:right}
@media(prefers-reduced-motion:reduce){.mag-icon{transition:none}}

@media(min-width:1200px){
  body.single-post .article-layout{display:block;width:100%;max-width:900px;margin-inline:auto}
  body.single-post .article-main,body.single-post .article-sidebar{width:100%;max-width:100%}
  body.single-post .article-cover img{width:100%;max-width:100%;max-height:none;height:auto;object-fit:contain}
  body.single-post .entry-content{width:100%;max-width:100%;margin-inline:0}
}

@media(min-width:1200px){
  body.single-post .site-shell{grid-template-columns:minmax(0,1fr)}
  body.single-post .expanded-nav{display:none}
  body.single-post .site-main{grid-column:1;width:100%;min-width:0}
  body.single-post .compact-rail{opacity:1;pointer-events:auto}
  body.single-post .article-top{width:100%;max-width:900px;margin-inline:auto}
  body.single-post .article-layout{display:block;width:100%;max-width:100%;margin-inline:0}
  body.single-post .article-main,body.single-post .article-sidebar{width:100%;max-width:100%}
  body.single-post .article-cover img{width:100%;max-width:100%;max-height:none;height:auto;object-fit:contain}
  body.single-post .entry-content{width:100%;max-width:100%;margin-inline:0}
}
