/* story-editorial-critical */
/* Shared once rather than in every direct article/figure HTML entry. */

    #detail-view .story-editorial{
      margin:24px 0 30px;padding:24px 24px 20px;
      border:1px solid var(--line,#dfe3df);
      border-top:3px solid var(--accent,#155a4f);
      border-radius:12px;background:var(--surface,#fff);
      box-shadow:var(--shadow-soft,0 2px 10px #0000000a);
      color:var(--ink,#1b2320);text-align:right;
    }
    #detail-view .story-editorial-kicker{
      display:flex;justify-content:space-between;align-items:center;
      flex-wrap:wrap;gap:8px;margin-bottom:10px;
      color:var(--accent,#155a4f);
      font:800 13px/1.6 "Vazirmatn",Tahoma,sans-serif;
    }
    #detail-view .story-editorial-kicker span{
      color:var(--ink-soft,#5d6760);font-weight:450;font-size:12px;
    }
    #detail-view .story-editorial h2{
      margin:0 0 16px;color:var(--ink,#1b2320);overflow-wrap:anywhere;
      font:750 clamp(21px,3.1vw,27px)/1.65 "Vazirmatn",Tahoma,sans-serif;
    }
    #detail-view .story-editorial-lead{
      margin:0 0 16px;padding-bottom:14px;
      border-bottom:1px solid var(--line,#dfe3df);
      color:var(--ink,#1b2320);
      font:650 17px/2 "Vazirmatn",Tahoma,sans-serif;
    }
    #detail-view .story-editorial-body p{
      margin:0 0 17px;color:var(--ink,#1b2320);
      font:400 16px/2.15 "Vazirmatn",Tahoma,sans-serif;
    }
    #detail-view .story-editorial-note{
      margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line,#dfe3df);
      color:var(--ink-soft,#5d6760);
      font:450 12.5px/1.9 "Vazirmatn",Tahoma,sans-serif;
    }
    #detail-view .story-report-cites{
      display:inline-flex;align-items:baseline;vertical-align:super;
      gap:5px;direction:ltr;margin-inline:5px;
    }
    #detail-view .story-report-cite{
      display:inline-grid;place-items:center;min-width:24px;height:22px;
      padding:0 4px;border:1px solid var(--line,#dfe3df);border-radius:5px;
      background:var(--surface-2,#e9ebe5);color:var(--accent,#155a4f);
      font:700 11px/1 "Vazirmatn",Tahoma,sans-serif;text-decoration:none;
    }
    #detail-view .story-history{
      margin:20px 0 28px;padding:18px 20px;
      border:1px solid var(--line,#dfe3df);border-radius:12px;
      background:var(--surface-2,#e9ebe5);
    }
    #detail-view .story-history h2{
      margin:0 0 8px;font:750 19px/1.8 "Vazirmatn",Tahoma,sans-serif;
    }
    #detail-view .story-history-caveat{
      margin:0;color:var(--ink-soft,#5d6760);
      font:400 12.5px/1.9 "Vazirmatn",Tahoma,sans-serif;
    }
    #detail-view .story-history h3{
      margin:17px 0 4px;color:var(--ink-soft,#5d6760);
      font:700 13px/1.8 "Vazirmatn",Tahoma,sans-serif;
    }
    #detail-view .story-history ol{list-style:none;margin:0;padding:0;display:grid}
    #detail-view .story-history li+li{border-top:1px solid var(--line,#dfe3df)}
    #detail-view .story-history li a{
      display:flex;align-items:baseline;gap:11px;padding:9px 0;
      color:var(--ink,#1b2320);text-decoration:none;
      font:600 14px/1.85 "Vazirmatn",Tahoma,sans-serif;
    }
    #detail-view .story-history li time{
      flex:0 0 auto;white-space:nowrap;direction:ltr;
      font-size:11.5px;font-weight:450;color:var(--ink-soft,#5d6760);
    }
    @media(max-width:600px){
      #detail-view .story-editorial{margin:18px 0 22px;padding:17px 15px}
      #detail-view .story-editorial h2{font-size:21px;line-height:1.75}
      #detail-view .story-editorial-lead{font-size:16px}
      #detail-view .story-editorial-body p{font-size:15px;line-height:2.1}
      #detail-view .story-history{padding:15px 13px}
      #detail-view .story-history li a{display:grid;gap:1px}
    }

    /* Unified article overrides: match external story-editorial.css. */
    #detail-view .story-editorial{margin:12px 0 26px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
    #detail-view .story-report-cites{display:none!important}
    #detail-view .story-editorial-kicker{display:none}
    #detail-view .story-editorial-lead{border-bottom:0;padding-bottom:0;margin:0 0 18px}
    #detail-view .story-author-monogram{width:64px;height:64px}
    #detail-view .d-meta[hidden]{display:none!important}
    @media(max-width:600px){#detail-view .story-author-monogram{width:56px;height:56px}}
  
/* end shared critical */
/* Pendar ۱۳۹۲ -> ۱۴۰۵: magazine-style reader for canonical /story/:id/.
   Isolated to detail view; data contracts, routing, SEO and sources are unchanged. */
html.heritage-article-active body{
  margin:0;
  background:repeating-linear-gradient(135deg,#edf0ed 0,#edf0ed 3px,#e8ebe8 3px,#e8ebe8 4px);
}
html.heritage-article-active body>header.top,
html.heritage-article-active body>footer.site-footer,
html.heritage-article-active body>nav.tabbar{display:none!important}
html.heritage-article-active body>main.wrap{width:100%;max-width:none;margin:0;padding:0}
html.heritage-article-active #detail-view{padding:0;max-width:none;width:100%;margin:0;animation:none}
#detail-view .magazine-reader{
  --ink:#222b27;--accent:#dc651e;--accent-soft:#fff0e6;--line:#dce3de;
  --surface:#fff;--surface-2:#f5f7f4;--ink-soft:#65736a;
  background:transparent;color:var(--ink);font-family:"Vazirmatn",Tahoma,sans-serif;
  font-size:15px;line-height:1.85;min-height:100vh;
}
#detail-view .magazine-reader *,#detail-view .magazine-reader *::before,#detail-view .magazine-reader *::after{box-sizing:border-box}
#detail-view .magazine-reader a{color:inherit;text-decoration:none}
#detail-view .magazine-reader a:focus-visible,
#detail-view .magazine-reader button:focus-visible,
#detail-view .magazine-reader summary:focus-visible{outline:3px solid #129ba6;outline-offset:3px}
#detail-view .magazine-container{width:min(1180px,calc(100% - 40px));margin-inline:auto}
#detail-view .magazine-masthead{background:#2a2928;color:#fff}
#detail-view .magazine-masthead-inner{min-height:100px;display:flex;gap:20px;align-items:center}
#detail-view .magazine-brand{display:flex;align-items:center}
#detail-view .magazine-brand img{display:block;max-width:110px;width:101px;max-height:85px;object-fit:contain}
#detail-view .magazine-masthead-tagline{color:#d2d3d0;font-size:13px;border-right:1px solid #545351;padding-right:18px}
#detail-view .magazine-masthead-back{margin-right:auto;border:1px solid #77716d;border-radius:4px;color:#e5ebe7;padding:7px 12px;font-size:12px}
#detail-view .magazine-masthead-back:hover{background:white;color:#2a2928}
#detail-view .magazine-topnav{background:#403d3c;border-top:1px solid #4b4746;color:#e9e8e6}
#detail-view .magazine-topnav-links{display:flex;gap:1px;align-items:center;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
#detail-view .magazine-topnav-links a{font-size:13px;font-weight:650;padding:13px 17px;display:block}
#detail-view .magazine-topnav-links a:hover{background:#5a5653}
#detail-view .magazine-article-container{padding-top:22px;padding-bottom:55px}
#detail-view .magazine-breadcrumb{display:flex;gap:10px;align-items:center;color:#668078;font-size:12px;padding:0 3px 18px}
#detail-view .magazine-breadcrumb a:hover{color:#d86720}
#detail-view .magazine-article-layout{display:grid;grid-template-columns:minmax(0,1.86fr) minmax(280px,.9fr);gap:20px;align-items:start}
#detail-view .magazine-article-paper{background:white;padding:34px clamp(24px,3.3vw,46px) 45px;min-width:0;border-top:4px solid #dc651e}
#detail-view .magazine-article-paper>.back{margin:0 0 17px;border:0;padding:0;color:#638179;background:transparent;font:600 12px/1.7 "Vazirmatn",Tahoma,sans-serif}
#detail-view .magazine-article-kicker{font:800 13px/1.75 "Vazirmatn",Tahoma,sans-serif;color:#d25c1c;margin-bottom:10px}
#detail-view .magazine-article-paper .d-head{margin:0 0 18px}
#detail-view .magazine-article-paper .d-head h1{
  color:#1c2622;font:850 clamp(27px,3vw,37px)/1.65 "Vazirmatn",Tahoma,sans-serif;
  letter-spacing:-.025em;text-wrap:pretty;margin:8px 0 13px;overflow-wrap:anywhere;
}
#detail-view .magazine-article-paper .d-head>.meta{color:#5e6e66;display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:12px;margin-bottom:5px}
#detail-view .magazine-article-paper .d-head>.meta .chip{color:#b44f17;background:#fff0e6;border-color:#f4d0ba}
#detail-view .magazine-article-paper .d-meta{font-size:11.5px;color:#768079;margin-bottom:14px}
#detail-view .magazine-article-lead{
  font:650 clamp(17px,1.6vw,19px)/2 "Vazirmatn",Tahoma,sans-serif;color:#495a52;
  margin:0 0 21px;padding:0 0 20px;border-bottom:1px solid #e2e8e3
}
#detail-view .magazine-article-photo{margin:12px 0 26px}
#detail-view .magazine-article-photo .hero-img{display:block;max-width:100%;width:100%;height:auto;max-height:480px;object-fit:cover;border-radius:0}
#detail-view .magazine-article-paper .hero-credit{font-size:11px;color:#7b887f;margin:7px 0 0;padding:0;background:transparent}
#detail-view .magazine-article-paper .story-editorial{margin:0 0 25px;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
#detail-view .magazine-article-paper .story-author-byline{border-top:1px solid #e1e7e2;border-bottom:1px solid #e1e7e2;margin:0 0 25px;padding:15px 0}
#detail-view .magazine-article-paper .story-author-monogram{width:57px;height:57px}
#detail-view .magazine-article-paper .story-author-credit a{color:#2d625d;font-size:15px}
#detail-view .magazine-article-paper .story-editorial-photo{margin:0 0 24px}
#detail-view .magazine-article-paper .story-editorial-photo .hero-img{width:100%;display:block;max-height:480px;object-fit:cover;height:auto}
#detail-view .magazine-article-paper .story-editorial-lead{
  font:650 18px/2.05 "Vazirmatn",Tahoma,sans-serif;color:#46574e;margin:0 0 20px;
}
#detail-view .magazine-article-paper .story-editorial-body p,
#detail-view .magazine-article-paper .magazine-news-narrative p{
  font:400 17px/2.2 "Vazirmatn",Tahoma,sans-serif;color:#252f29;margin:0 0 23px;text-align:right
}
#detail-view .magazine-news-narrative h2{color:#1d2923;font:800 20px/1.8 "Vazirmatn",Tahoma,sans-serif;margin:20px 0 8px}
#detail-view .magazine-article-paper .story-report-cites{display:none!important}
#detail-view .magazine-article-paper .story-examination{
  margin:34px 0 26px;border:1px solid #cadbd3;border-radius:7px;background:#fff;overflow:hidden
}
#detail-view .magazine-article-paper .story-examination>summary{
  background:#f0f6f3;font:800 17px/1.85 "Vazirmatn",Tahoma,sans-serif;padding:17px 19px;
  display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;color:#1f4036
}
#detail-view .magazine-article-paper .story-examination>summary::-webkit-details-marker{display:none}
#detail-view .magazine-article-paper .story-examination>summary:after{content:"＋";color:#128a93;font-size:23px;line-height:1}
#detail-view .magazine-article-paper .story-examination[open]>summary:after{content:"−"}
#detail-view .magazine-article-paper .story-examination-description{font:400 12px/1.75 "Vazirmatn",Tahoma,sans-serif;color:#667b72;margin-top:4px}
#detail-view .magazine-article-paper .story-examination-body{padding:3px 19px 23px}
#detail-view .magazine-article-paper .story-examination-body .layers{margin-top:18px}
#detail-view .magazine-article-paper .story-inline-sponsor{width:100%}
#detail-view .magazine-article-rail{display:flex;flex-direction:column;gap:17px;min-width:0}
#detail-view .magazine-rail-box,#detail-view .magazine-rail-nav{background:white;border:1px solid #dae2db}
#detail-view .magazine-rail-heading{background:#f9faf8;border-top:4px solid #dc651e;padding:11px 14px;display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #e3e7e4}
#detail-view .magazine-article-rail h2{margin:0;font:800 16px/1.8 "Vazirmatn",Tahoma,sans-serif}
#detail-view .magazine-rail-heading>a{color:#2a8486;font-size:12px}
#detail-view .magazine-side-story{
  display:flex;gap:11px;align-items:center;padding:12px 13px;min-height:80px;border-bottom:1px solid #e6ebe7;
}
#detail-view .magazine-side-story:hover{background:#f5f8f6}
#detail-view .magazine-side-story:last-child{border-bottom:0}
#detail-view .magazine-side-picture{display:block;flex:0 0 91px;width:91px;height:68px;overflow:hidden;background:#e2e9e4;border-radius:3px}
#detail-view .magazine-side-picture img{width:100%;height:100%;object-fit:cover;display:block}
#detail-view .magazine-side-story-title{font:700 13px/1.75 "Vazirmatn",Tahoma,sans-serif;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
#detail-view .magazine-rail-empty{font-size:13px;color:#69766e;padding:18px;margin:0}
#detail-view .magazine-rail-nav{padding:17px;border-top:4px solid #158f98}
#detail-view .magazine-rail-nav h2{margin-bottom:12px}
#detail-view .magazine-rail-nav>a{display:block;padding:10px 0;border-top:1px solid #ebeeec;color:#375f5c;font-size:13px}
#detail-view .magazine-article-footer{background:#2a2928;color:#dde0dc}
#detail-view .magazine-article-footer>.magazine-container{min-height:125px;display:flex;gap:15px;align-items:center;flex-wrap:wrap;font-size:12px}
#detail-view .magazine-article-footer>.magazine-container>a{font-size:21px;font-weight:850;color:white}
#detail-view .magazine-article-footer nav{display:flex;flex-wrap:wrap;gap:15px;margin-right:auto}
#detail-view .magazine-article-footer nav a:hover{color:#5ad1d2}
@media(max-width:840px){
  #detail-view .magazine-article-layout{grid-template-columns:minmax(0,1fr) 240px;gap:12px}
  #detail-view .magazine-side-picture{width:70px;flex-basis:70px;height:57px}
  #detail-view .magazine-article-paper{padding:23px 21px 32px}
}
@media(max-width:700px){
  #detail-view .magazine-container{width:calc(100% - 24px)}
  #detail-view .magazine-masthead-inner{min-height:77px}
  #detail-view .magazine-brand img{width:78px}
  #detail-view .magazine-masthead-tagline{display:none}
  #detail-view .magazine-topnav-links a{padding:12px 13px;font-size:12px}
  #detail-view .magazine-article-container{padding-top:15px}
  #detail-view .magazine-article-layout{grid-template-columns:minmax(0,1fr)}
  #detail-view .magazine-article-rail{display:none}
  #detail-view .magazine-article-paper{padding:22px 19px 32px}
  #detail-view .magazine-article-paper .d-head h1{font-size:27px;line-height:1.62}
  #detail-view .magazine-article-paper .story-editorial-body p,
  #detail-view .magazine-article-paper .magazine-news-narrative p{font-size:16px;line-height:2.08}
  #detail-view .magazine-article-paper .story-editorial-lead{font-size:17px}
  #detail-view .magazine-article-paper .story-examination-body{padding:2px 13px 18px}
  #detail-view .magazine-article-footer nav{margin-right:0}
  #detail-view .magazine-article-footer>.magazine-container{padding:20px 0;min-height:auto}
}
@media(prefers-reduced-motion:reduce){html.heritage-article-active #detail-view{animation:none!important}}

/* Shared route CSS: cached story HTML omits duplicate homepage-only critical blocks.
   Root / retains inline first-paint CSS; articles use this external stylesheet. */

/* heritage-live-visibility */
#heritage-live-host[hidden]{display:none!important}
    /* The bootstrap class is attached synchronously in <head> before first paint. */
    html.heritage-booting body>header.top,
    html.heritage-booting body>main.wrap,
    html.heritage-booting body>footer.site-footer,
    html.heritage-booting body>nav.tabbar{display:none!important}
    html.heritage-booting body{margin:0;padding:0;background:#eceeeb}
    html.heritage-booting #heritage-live-host[hidden]{display:block!important}
    #heritage-live-host.heritage-ready>.heritage-first-paint{display:none!important}
    .heritage-first-paint{min-height:100vh;background:#eceeeb;color:#25312d;font:500 15px/1.8 "Vazirmatn",Tahoma,sans-serif}
    .heritage-first-paint-header{background:#2a2928;min-height:96px;display:flex;align-items:center;padding:12px max(22px,calc((100vw - 1180px)/2))}
    .heritage-first-paint-header img{width:96px;height:auto;max-height:72px;object-fit:contain}
    .heritage-first-paint-nav{height:52px;background:#403d3c;display:flex;gap:26px;align-items:center;padding:0 max(22px,calc((100vw - 1180px)/2));color:#eee;font-size:13px}
    .heritage-first-paint-content{width:min(1180px,calc(100% - 40px));margin:25px auto}
    .heritage-first-paint-ticker{height:90px;background:#fff;border-right:110px solid #df651c;margin-bottom:20px}
    .heritage-first-paint-columns{display:grid;grid-template-columns:minmax(0,1.88fr) minmax(285px,.92fr);gap:20px}
    .heritage-first-paint-feature,.heritage-first-paint-sidebar{background:#fff;min-height:385px}
    .heritage-first-paint-feature{border-top:4px solid #df651c;background:linear-gradient(#f9faf9 0 48px,#e0e7e2 48px 320px,#fff 320px)}
    .heritage-first-paint-sidebar{border-top:4px solid #df651c;background:repeating-linear-gradient(#fff 0 70px,#e3e7e3 70px 71px)}
    @media(max-width:720px){.heritage-first-paint-header{min-height:77px}.heritage-first-paint-nav{gap:18px;font-size:12px;overflow:hidden;white-space:nowrap}.heritage-first-paint-content{width:calc(100% - 20px)}.heritage-first-paint-ticker{height:81px;border-right-width:75px}.heritage-first-paint-columns{grid-template-columns:1fr}.heritage-first-paint-sidebar{display:none}.heritage-first-paint-feature{min-height:350px}}
    html.heritage-live-active body>header.top,
    html.heritage-live-active body>main.wrap,
    html.heritage-live-active body>footer.site-footer,
    html.heritage-live-active body>nav.tabbar{display:none!important}
    html.heritage-live-active body{margin:0;padding:0;background:#eceeeb}
    html.heritage-live-active #heritage-live-host{display:block;min-height:100vh}

/* figures-timeline-critical */
#home-daily-stories.home-people-in-table .home-people-timeline{display:flex;flex-direction:column;position:relative;padding:10px 15px;direction:rtl}
    #home-daily-stories.home-people-in-table .home-people-timeline::before{content:"";position:absolute;right:32px;top:25px;bottom:25px;width:2px;background:var(--line)}
    #home-daily-stories.home-people-in-table .home-people-timeline-row{position:relative;display:flex;flex-direction:row;align-items:flex-start;gap:14px;margin:0 45px 0 0;padding:18px 12px;border-bottom:1px solid var(--line);width:auto;min-width:0}
    #home-daily-stories.home-people-in-table .home-people-timeline-row::before{content:"";position:absolute;right:-34px;top:38px;width:11px;height:11px;box-sizing:border-box;border-radius:50%;border:2px solid var(--accent);background:var(--surface)}
    #home-daily-stories.home-people-in-table .home-people-timeline-avatar{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;overflow:hidden;border-radius:50%;background:var(--surface-2);border:1px solid var(--line)}
    #home-daily-stories.home-people-in-table .home-people-timeline-avatar img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important}
    #home-daily-stories.home-people-in-table .home-people-timeline-copy{display:flex;flex-direction:column;align-items:stretch;gap:9px;flex:1;min-width:0;text-align:right}
    #home-daily-stories.home-people-in-table .home-people-timeline-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--ink-soft)}
    #home-daily-stories.home-people-in-table .home-people-timeline-meta strong{font-size:14px;color:var(--accent)}
    #home-daily-stories.home-people-in-table .home-people-timeline-title{display:block;font-weight:700;font-size:16px;line-height:1.7;color:var(--ink);text-decoration:none}
    #home-daily-stories.home-people-in-table .home-people-timeline-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;margin:0;color:var(--ink-soft);font-size:14px;line-height:1.95;overflow-wrap:anywhere}
    #home-daily-stories.home-people-in-table .home-people-timeline-read{align-self:flex-start;color:var(--accent);font-size:12px;text-decoration:none}
    #home-daily-stories.home-people-in-table .home-people-timeline-more{text-align:center;padding:16px}
    #home-daily-stories.home-people-in-table .home-people-timeline-more button{font:inherit;padding:10px 15px;cursor:pointer;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--accent)}
    @media(max-width:600px){#home-daily-stories.home-people-in-table .home-people-timeline{padding:8px}#home-daily-stories.home-people-in-table .home-people-timeline::before{right:17px}#home-daily-stories.home-people-in-table .home-people-timeline-row{margin-right:28px;gap:9px;padding:13px 5px}#home-daily-stories.home-people-in-table .home-people-timeline-row::before{right:-25px}#home-daily-stories.home-people-in-table .home-people-timeline-avatar{width:42px;height:42px;flex-basis:42px}#home-daily-stories.home-people-in-table .home-people-timeline-title{font-size:14px}#home-daily-stories.home-people-in-table .home-people-timeline-excerpt{font-size:12px}}

/* homepage-news-image-safety */
/* Critical sizing stays in the document even if a cached stylesheet is stale. */
    #home-daily-stories .home-intel-row-rich{display:flex;align-items:center;flex-wrap:nowrap}
    #home-daily-stories .home-news-thumb{display:block;position:relative;box-sizing:border-box;width:88px;min-width:88px;max-width:88px;height:62px;min-height:62px;max-height:62px;flex:0 0 88px;overflow:hidden;border-radius:8px;background:var(--surface-2)}
    #home-daily-stories .home-news-thumb img{display:block!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;object-fit:cover!important}
    #home-daily-stories .home-intel-copy{min-width:0;flex:1}
    #home-daily-stories .home-news-thumb-fallback{display:grid;place-items:center;height:100%;font-size:11px}
    @media(max-width:600px){#home-daily-stories .home-news-thumb{width:72px;min-width:72px;max-width:72px;height:54px;min-height:54px;max-height:54px;flex-basis:72px}}

/* pendar-priority-home */
#home-daily .home-culture-panel {display:none!important}
        #home-daily .home-daily-grid {grid-template-columns:minmax(0,1fr)!important}
