
/* ==========================================================================
   v9 — Poesies-style perceived loading / static-first transition
   --------------------------------------------------------------------------
   On a direct dynamic route the server paints a real Shamlou structural frame
   immediately. WordPress data replaces it later. We never blank #app.
   ========================================================================== */

.shamlouInitialFrame { display: none; min-height: 100vh; background: var(--route-white); }

html.shamlou-dynamic-route:not(.shamlou-snapshot-ready) #app > :not(.shamlouInitialFrame) {
  display: none !important;
}
html.shamlou-initial-content:not(.shamlou-snapshot-ready) .shamlouInitialContentFrame {
  display: block;
}
html.shamlou-initial-category:not(.shamlou-snapshot-ready) .shamlouInitialCategoryFrame {
  display: block;
}

.shamlouInitialLine,
.shamlouInitialTextLine,
.shamlouInitialToc span,
.shamlouInitialCategoryRows span {
  display: block;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,.055);
  border-radius: 2px;
}
.shamlouInitialLine::after,
.shamlouInitialTextLine::after,
.shamlouInitialToc span::after,
.shamlouInitialCategoryRows span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(110%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: shamlouSkeletonDrift 2.2s ease-in-out infinite;
}
@keyframes shamlouSkeletonDrift { to { transform: translateX(-110%); } }

.shamlouInitialArticleHead { min-height: 145px; }
.shamlouInitialCollectionLine { width: 22%; height: 13px; margin: 0 auto 14px 0; }
.shamlouInitialTitleLine { width: 48%; height: 32px; margin: 0 auto 0 0; }
.shamlouInitialReadingStage { min-height: 440px; padding-top: 5px; }
.shamlouInitialTextLine { height: 12px; width: 92%; margin: 0 0 27px auto; }
.shamlouInitialTextMid { width: 72%; }
.shamlouInitialTextShort { width: 44%; }

.shamlouInitialCategoryTitle { width: 42%; height: 31px; }
.shamlouInitialToc {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px 38px;
}
.shamlouInitialToc span { height: 18px; }
.shamlouInitialCategoryRows { display: grid; gap: 28px; padding-top: 32px; }
.shamlouInitialCategoryRows span { height: 74px; }

#app.shamlouRouteRefreshing > * {
  opacity: .74;
  transition: opacity .18s ease;
  pointer-events: none;
}
#app.shamlouRouteEntered > * {
  animation: shamlouRouteReveal .24s ease both;
}
@keyframes shamlouRouteReveal {
  from { opacity: .76; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .shamlouInitialLine::after,
  .shamlouInitialTextLine::after,
  .shamlouInitialToc span::after,
  .shamlouInitialCategoryRows span::after,
  #app.shamlouRouteEntered > * {
    animation: none !important;
  }
}
@media (max-width: 900px) {
  .shamlouInitialToc { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .shamlouInitialToc { grid-template-columns: 1fr; }
  .shamlouInitialTitleLine { width: 70%; }
  .shamlouInitialCollectionLine { width: 34%; }
  .shamlouInitialTextLine { width: 96%; }
  .shamlouInitialTextMid { width: 78%; }
  .shamlouInitialTextShort { width: 54%; }
}

@font-face{
  font-family:Niloofar;
  src:local("XB Niloofar"),url("/assets/fonts/XBNiloofar.ttf") format("truetype");
  font-display:swap;
}
@font-face{
  font-family:Mashin;
  src:local("Far Mashin Tahrir"),url("/assets/fonts/FarMashinTahrir.ttf") format("truetype");
  font-display:swap;
}
@font-face{
  font-family:Parastoo;
  src:
    local("Parastoo"),
    url("/assets/fonts/Parastoo.ttf") format("truetype"),
    url("https://cdn.jsdelivr.net/npm/parastoo-font@2.0.1/dist/Parastoo.woff2") format("woff2");
  font-display:swap;
}
:root{
  --route-white:#fbfbfa;
  --route-ink:#171717;
  --route-accent:#ff9900;
  --route-rule:rgba(0,0,0,.13);
  --route-soft:rgba(0,0,0,.075);
}
.route-loading{
  min-height:520px;background:var(--route-white);display:grid;place-items:center
}
.route-spinner{
  width:28px;height:28px;border:1px solid rgba(0,0,0,.16);
  border-top-color:var(--route-accent);border-radius:50%;animation:sh-spin .75s linear infinite
}
@keyframes sh-spin{to{transform:rotate(360deg)}}
.route-error{
  min-height:480px;background:var(--route-white);display:grid;place-items:center;
  padding:60px 24px;direction:rtl
}
.route-error-inner{width:min(720px,100%);border-top:2px solid var(--route-accent);padding-top:22px}
.route-error h1{font:400 31px/1.4 Niloofar,serif;margin:0 0 10px}
.route-error p{font:17px/1.9 Parastoo,Niloofar,serif;color:#555;margin:0 0 18px}
.route-error a{color:var(--route-accent)}

/* shared dynamic header/footer */
.route-site-header{
  height:176px;background:var(--route-white);border-bottom:1px solid var(--route-rule);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;position:relative
}
.route-brand{display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;color:inherit}
.route-brand img{width:150px;height:58px;object-fit:contain}
.route-brand span{font:17px/1.4 Niloofar,serif}
.route-nav{display:flex;align-items:center;justify-content:center;gap:37px;white-space:nowrap;font:16px/1.5 Niloofar,serif}
.route-nav a{position:relative;text-decoration:none;color:inherit;padding:3px 0}
.route-nav a[aria-current="page"]::after,.route-nav a:hover::after{
  content:"";position:absolute;right:0;left:0;bottom:-8px;height:2px;background:var(--route-accent)
}
.route-utility{position:absolute;left:44px;bottom:28px;font:12px Arial,sans-serif;direction:ltr}
.route-footer-top{height:58px;background:#cdcdca;border-top:1px solid rgba(0,0,0,.08);padding:0 42px}
.route-footer-top-inner{height:100%;max-width:1440px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;direction:ltr}
.route-footer-contacts{display:flex;align-items:center;gap:18px;direction:ltr}
.route-footer-contact{width:22px;height:22px;display:grid;place-items:center;color:#1d1d1d;text-decoration:none;flex:0 0 auto}
.route-footer-contact:hover,.route-footer-contact:focus-visible{color:var(--route-accent);outline:none}
.route-footer-icon{width:20px;height:20px;display:grid;place-items:center}
.route-footer-icon svg{display:block;width:20px;height:20px;fill:currentColor}.route-footer-icon img{display:block;width:20px;height:20px;object-fit:contain}
.route-footer-icon svg path{fill:currentColor}
.route-footer-copy{direction:rtl;text-align:right;font:21px/1.3 Niloofar,serif}
.route-footer-bottom{background:#0b0b0b;color:var(--route-accent);padding:0 42px}
.route-footer-bottom-inner{min-height:86px;max-width:1440px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;direction:rtl}
.route-footer-brand{display:flex;align-items:center;gap:20px}
.route-footer-logo{height:48px;width:auto;max-width:145px}
.route-footer-names{display:flex;flex-direction:column;align-items:flex-start;line-height:1.28}
.route-footer-names .fa{font:18px Niloofar,serif}
.route-footer-names .en{font:11px Arial,sans-serif;direction:ltr}
.route-footer-copyright{font:15px Niloofar,serif;white-space:nowrap}

/* single reading */
.single-band{
  height:122px;background:#090909;color:var(--route-accent);border-bottom:1px solid #000;overflow:hidden
}
.single-band-inner{max-width:1440px;height:100%;margin:0 auto;display:flex;align-items:center;justify-content:center;padding:0 32px}
.single-band blockquote{margin:0;max-width:520px;direction:rtl;text-align:center;font:18px/1.55 Mashin,Niloofar,serif;color:var(--route-accent)}
.single-band .line{display:block}
.reading-page{background:var(--route-white);min-height:500px;display:flow-root}
.article-head{
  width:min(880px,calc(100% - 64px));margin:0 auto 34px;padding:62px 0 28px;
  direction:rtl;text-align:left;border-bottom:1px solid var(--route-rule)
}
.collection-name{
  display:block;width:max-content;max-width:100%;margin:0 auto 11px 0;
  font:15px/1.5 Mashin,Niloofar,serif;color:var(--route-accent);text-decoration:none
}
.article-title{margin:0;font:400 41px/1.3 Niloofar,serif;color:#141414}
.article-title::after{content:"";display:block;width:42px;height:3px;margin-top:15px;background:var(--route-accent)}
.reading-stage{position:relative;margin:0 auto 100px}
.reading-stage.poem-stage{width:min(690px,calc(100% - 64px))}
.reading-stage.prose-stage{width:min(820px,calc(100% - 64px))}
.reading-static-rail{position:absolute;top:0;bottom:0;right:-30px;width:1px;background:rgba(0,0,0,.12)}
.reading-progress-rail{position:absolute;top:0;bottom:0;left:-30px;width:1px;background:rgba(0,0,0,.11)}
.reading-progress-marker{
  position:absolute;top:0;left:-2px;width:5px;height:42px;background:var(--route-accent);
  transform:translateY(-50%);transition:top .08s linear
}
.article-body{direction:rtl;color:#1f1f1f;font:16px/2.02 Parastoo,Niloofar,serif;font-weight:400}
/* v91 — reading-content typography is 20% smaller site-wide. Poem source HTML remains authoritative. */
.article-body.poem{font-size:16px;line-height:2.02;text-align:right;white-space:normal}
/* v90 — restore the paragraph/stanza breathing room visible in the WordPress rendering.
   Earlier builds forced every poem paragraph to zero block margin, which flattened source-authored
   stanza separation. Keep horizontal geometry untouched and restore only vertical paragraph space. */
.article-body.poem p{margin-block-start:0!important;margin-block-end:10px!important}
.article-body.poem br{line-height:inherit}
/* v82 — legacy WordPress editorial alignment marker.
   rteleft is preserved in the source HTML and means a left-aligned italic note/dedication.
   trlleft is supported as a compatibility spelling. */
.article-body .rteleft,.article-body .trlleft{
  text-align:left!important;
  text-align-last:left!important;
  font-style:italic!important
}

.article-body.prose{text-align:justify;text-align-last:right}
.article-body.prose p{margin:0 0 1.15em}
.article-body h1,.article-body h2,.article-body h3,.article-body h4{
  font-family:Parastoo,Niloofar,serif;font-weight:700;line-height:1.65
}

/* generic category */
.category-band{height:220px;background:#090909;color:var(--route-accent);overflow:hidden;border-bottom:1px solid #000}
.category-band-inner{height:100%;max-width:1440px;margin:0 auto;display:grid;grid-template-columns:60% 40%;grid-template-areas:"quote photo";direction:ltr}
.category-band-photo{grid-area:photo;height:100%;overflow:hidden;position:relative}
.category-band-photo img{width:100%;height:100%;object-fit:cover;object-position:56% 23%;filter:grayscale(100%)}
.category-band-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#090909 0%,rgba(9,9,9,.63) 13%,rgba(9,9,9,0) 42%)}
.category-band-copy{grid-area:quote;direction:rtl;display:flex;align-items:center;justify-content:flex-end;padding:25px 52px 25px 42px}
.category-band blockquote{margin:0;width:100%;font:23px/1.8 Mashin,Niloofar,serif;color:var(--route-accent);text-align:right}
.category-band .quote-line{display:block}
.category-intro{background:#e8e8e4;border-bottom:1px solid var(--route-rule)}
.category-intro-inner{max-width:1320px;margin:0 auto;padding:49px 46px 50px}
.category-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;border-bottom:1px solid var(--route-rule);padding-bottom:21px;margin-bottom:27px}
.category-title{margin:0;font:400 38px/1.25 Niloofar,serif}
.category-title::after{content:"";display:block;width:44px;height:3px;background:var(--route-accent);margin-top:13px}
.toc-label{font:15px Mashin,Niloofar,serif;color:var(--route-accent)}
.category-toc{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:38px;direction:rtl}
.toc-item{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:baseline;padding:8px 0 9px;border-bottom:1px solid rgba(0,0,0,.065);font:17px/1.55 Mashin,Niloofar,serif;text-decoration:none;color:inherit}
.toc-number{font:12px Niloofar,serif;color:#999;text-align:left;direction:ltr}
.category-list-inner{max-width:1320px;margin:0 auto;padding:18px 46px 74px}
.category-entry{display:grid;grid-template-columns:minmax(0,68%) minmax(250px,32%);grid-template-areas:"blurb title";direction:ltr;gap:48px;padding:37px 0 39px;border-bottom:1px solid var(--route-soft)}
.entry-title-wrap{grid-area:title;direction:rtl;text-align:right}
.entry-title{font:400 27px/1.45 Niloofar,serif;text-decoration:none;color:inherit}
.entry-title::before{content:"";display:inline-block;width:7px;height:7px;background:var(--route-accent);margin-left:10px;vertical-align:.14em}
.entry-blurb{grid-area:blurb;direction:rtl;text-align:right;white-space:pre-line;font:19px/1.78 Mashin,Niloofar,serif;color:#282828}

@media(max-width:900px){
  .route-site-header{height:auto;padding:24px 18px 20px}
  .route-nav{gap:18px;flex-wrap:wrap;font-size:14px}
  .route-utility{display:none}
  .article-head{width:min(820px,calc(100% - 48px));padding-top:50px}
  .article-title{font-size:35px}
  .reading-stage.poem-stage{width:min(650px,calc(100% - 48px))}
  .reading-stage.prose-stage{width:min(760px,calc(100% - 48px))}
  .article-body{font-size:15.2px}
  .article-body.poem{font-size:15.2px}
  .reading-static-rail{right:-24px}.reading-progress-rail{left:-24px}
  .category-toc{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .single-band{height:auto;min-height:116px}.single-band-inner{padding:19px 22px}
  .single-band blockquote{font-size:16px}
  .article-head{width:calc(100% - 40px);padding:42px 0 24px;margin-bottom:27px}
  .article-title{font-size:20.5px;line-height:1.42}
  .reading-stage.poem-stage,.reading-stage.prose-stage{width:calc(100% - 48px);margin-bottom:76px}
  .article-body{font-size:14.8px;line-height:1.92}
  .article-body.poem{font-size:14.8px;line-height:1.92}
  .article-body.prose{text-align:justify;text-align-last:right}
  .reading-static-rail{right:-15px}.reading-progress-rail{left:-15px}
  .reading-progress-marker{height:34px;width:4px;left:-1.5px}
  .category-band{height:auto}.category-band-inner{display:flex;flex-direction:column}
  .category-band-copy{order:1;padding:24px 22px 20px}.category-band blockquote{font-size:18px;text-align:center}
  .category-band-photo{order:2;height:210px;display:flex;align-items:center;justify-content:center}.category-band-photo img{object-position:center center}.category-title-row{display:block}.category-title{font-size:19px;line-height:1.4}
  .category-toc{grid-template-columns:1fr}
  .category-list-inner{padding-left:20px;padding-right:20px}
  .category-entry{grid-template-columns:1fr;grid-template-areas:"title" "blurb";direction:rtl;gap:12px;padding:27px 0 30px}
  .entry-title{font-size:24px}.entry-blurb{font-size:18px}
  .route-footer-top{height:48px;padding:0 14px}
  .route-footer-top-inner{gap:10px}
  .route-footer-contacts{gap:12px;flex:0 0 auto}
  .route-footer-contact{width:18px;height:18px}
  .route-footer-icon,.route-footer-icon svg,.route-footer-icon img{width:17px;height:17px}
  .route-footer-copy{font-size:10.5px;line-height:1.25;white-space:nowrap}
  .route-footer-bottom{padding:0 10px}
  .route-footer-bottom-inner{min-height:62px;gap:7px;flex-wrap:nowrap}
  .route-footer-brand{gap:7px;min-width:0;flex:1 1 auto}
  .route-footer-logo{height:28px;max-width:76px}
  .route-footer-names{min-width:0}
  .route-footer-names .fa{font-size:9px;white-space:nowrap}
  .route-footer-names .en{font-size:5.5px;white-space:nowrap}
  .route-footer-copyright{font-size:7.5px;line-height:1.2;white-space:nowrap;flex:0 0 auto}
}

/* v9: poem HTML/indentation/table structure comes directly from WordPress. */


/* ==========================================================================
   v10 — گاه‌نامه / journal issues
   Parent category 136 is an issue index. Child categories are issue collections.
   ========================================================================== */

.journalRoot,
.journalIssuePage {
  background: var(--route-white);
}

.journalRootIntro {
  background: #e8e8e4;
  border-bottom: 1px solid var(--route-rule);
}

.journalRootIntroInner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 46px 54px;
}

.journalIssueIndex {
  display: grid;
  gap: 0;
  direction: rtl;
}

.journalIssueIndexRow {
  display: grid;
  grid-template-columns: 180px minmax(0,1fr) auto;
  grid-template-areas: "thumb copy count";
  gap: 28px;
  align-items: center;
  min-height: 130px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  color: inherit;
  text-decoration: none;
}

.journalIssueIndexRow:first-child {
  border-top: 1px solid rgba(0,0,0,.08);
}

.journalIssueIndexThumb {
  grid-area: thumb;
  display: block;
  width: 180px;
  height: 108px;
  overflow: hidden;
  background: #0b0b0b;
}

.journalIssueThumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.86) contrast(.98);
  transition: transform .25s ease, filter .25s ease;
}

.journalIssueIndexRow:hover .journalIssueThumb,
.journalIssueIndexRow:focus-visible .journalIssueThumb {
  transform: scale(1.025);
  filter: saturate(1) contrast(1);
}

.journalIssueFallbackThumb {
  width: 100%;
  height: 100%;
  min-height: 108px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: #0b0b0b;
  color: var(--route-accent);
}

.journalIssueFallbackThumb img {
  width: 74px;
  height: 34px;
  object-fit: contain;
}

.journalIssueFallbackThumb span {
  font: 12px/1.4 Mashin,Niloofar,serif;
}

.journalIssueIndexCopy {
  grid-area: copy;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  direction: rtl;
}

.journalIssueIndexCopy small {
  color: var(--route-accent);
  font: 13px/1.4 Mashin,Niloofar,serif;
  margin-bottom: 5px;
}

.journalIssueIndexCopy strong {
  font: 400 26px/1.45 Niloofar,serif;
  color: #161616;
}

.journalIssueIndexCopy em {
  display: block;
  max-width: 720px;
  margin-top: 7px;
  color: #555;
  font: normal 16px/1.75 Parastoo,Niloofar,serif;
  white-space: pre-line;
}

.journalIssueIndexCount {
  grid-area: count;
  color: #777;
  white-space: nowrap;
  font: 13px/1.4 Mashin,Niloofar,serif;
}

.journalIssues {
  background: var(--route-white);
}

.journalIssuesInner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 46px 84px;
}

.journalIssueSection {
  padding: 58px 0 70px;
  border-top: 1px solid var(--route-rule);
  scroll-margin-top: 22px;
}

.journalIssueSection:first-child {
  border-top: 0;
}

.journalIssueSection::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 24px;
  background: var(--route-accent);
}

.journalIssueSectionHeader {
  display: grid;
  grid-template-columns: minmax(0,1fr) 220px;
  grid-template-areas: "title thumb";
  gap: 44px;
  align-items: start;
  direction: ltr;
  margin-bottom: 31px;
}

.journalIssueSectionTitle {
  grid-area: title;
  direction: rtl;
  text-align: right;
}

.journalIssueSectionTitle > span {
  display: block;
  margin-bottom: 6px;
  color: var(--route-accent);
  font: 14px/1.4 Mashin,Niloofar,serif;
}

.journalIssueSectionTitle h2 {
  margin: 0;
  font: 400 34px/1.35 Niloofar,serif;
}

.journalIssueSectionTitle a {
  display: inline-block;
  margin-top: 14px;
  color: #777;
  font: 14px/1.4 Mashin,Niloofar,serif;
  text-decoration: none;
}

.journalIssueSectionTitle a:hover,
.journalIssueSectionTitle a:focus-visible {
  color: var(--route-accent);
}

.journalIssueSectionThumb {
  grid-area: thumb;
  width: 220px;
  height: 138px;
  overflow: hidden;
  background: #0b0b0b;
}

.journalIssueSectionThumb > img,
.journalIssueSectionThumb > .journalIssueFallbackThumb {
  width: 100%;
  height: 100%;
}

.journalIssueInternalToc {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 42px;
  margin: 0 0 27px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.journalIssueInternalToc a {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.065);
  color: inherit;
  text-decoration: none;
  direction: rtl;
}

.journalIssueInternalToc a span {
  color: #999;
  font: 12px/1.5 Niloofar,serif;
  direction: ltr;
  text-align: left;
}

.journalIssueInternalToc a b {
  font: 400 16px/1.65 Mashin,Niloofar,serif;
}

.journalIssueInternalToc a:hover b,
.journalIssueInternalToc a:focus-visible b {
  color: var(--route-accent);
}

.journalIssueArticles {
  border-top: 1px solid var(--route-rule);
}

.journalIssueArticle {
  display: grid;
  grid-template-columns: minmax(0,68%) minmax(250px,32%);
  grid-template-areas: "blurb title";
  direction: ltr;
  gap: 48px;
  padding: 33px 0 35px;
  border-bottom: 1px solid var(--route-soft);
}

.journalIssueArticleTitleWrap {
  grid-area: title;
  direction: rtl;
  text-align: right;
}

.journalIssueArticleTitle {
  color: inherit;
  text-decoration: none;
  font: 400 26px/1.48 Niloofar,serif;
}

.journalIssueArticleTitle::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  background: var(--route-accent);
  vertical-align: .14em;
}

.journalIssueArticleTitle:hover,
.journalIssueArticleTitle:focus-visible {
  color: var(--route-accent);
}

.journalIssueArticleBlurb {
  grid-area: blurb;
  direction: rtl;
  text-align: right;
  white-space: pre-line;
  color: #282828;
  font: 19px/1.78 Mashin,Niloofar,serif;
}

/* Direct child issue page */
.journalIssuePageIntro {
  background: #e8e8e4;
  border-bottom: 1px solid var(--route-rule);
}

.journalIssuePageIntroInner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 46px 52px;
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  grid-template-areas: "cover copy";
  gap: 42px;
  direction: ltr;
  align-items: center;
}

.journalIssuePageCover {
  grid-area: cover;
  width: 240px;
  height: 150px;
  overflow: hidden;
  background: #0b0b0b;
}

.journalIssuePageCover > img,
.journalIssuePageCover > .journalIssueFallbackThumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journalIssuePageCopy {
  grid-area: copy;
  direction: rtl;
  text-align: right;
}

.journalIssuePageCopy > span {
  color: var(--route-accent);
  font: 14px/1.4 Mashin,Niloofar,serif;
}

.journalIssuePageCopy h1 {
  margin: 5px 0 9px;
  font: 400 38px/1.3 Niloofar,serif;
}

.journalIssuePageCopy p {
  max-width: 720px;
  margin: 0 0 13px;
  white-space: pre-line;
  color: #555;
  font: 17px/1.8 Parastoo,Niloofar,serif;
}

.journalIssuePageCopy a {
  color: #777;
  font: 14px/1.5 Mashin,Niloofar,serif;
  text-decoration: none;
}

.journalIssuePageCopy a:hover {
  color: var(--route-accent);
}

.journalIssuePageToc {
  background: var(--route-white);
}

.journalIssuePageTocInner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 46px 8px;
}

.journalIssuePageTocInner > .toc-label {
  display: block;
  margin-bottom: 13px;
}

.journalIssueArticlesStandalone {
  max-width: 1160px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .journalRootIntroInner,
  .journalIssuesInner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .journalIssueIndexRow {
    grid-template-columns: 150px minmax(0,1fr) auto;
    gap: 20px;
  }

  .journalIssueIndexThumb {
    width: 150px;
    height: 94px;
  }

  .journalIssueSectionHeader {
    grid-template-columns: minmax(0,1fr) 180px;
    gap: 28px;
  }

  .journalIssueSectionThumb {
    width: 180px;
    height: 113px;
  }

  .journalIssueInternalToc {
    grid-template-columns: 1fr;
  }

  .journalIssueArticle {
    grid-template-columns: minmax(0,62%) minmax(220px,38%);
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .journalRootIntroInner,
  .journalIssuesInner,
  .journalIssuePageIntroInner,
  .journalIssuePageTocInner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .journalIssueIndexRow {
    grid-template-columns: 104px minmax(0,1fr);
    grid-template-areas:
      "thumb copy"
      "thumb count";
    gap: 8px 16px;
    min-height: 102px;
    padding: 14px 0;
  }

  .journalIssueIndexThumb {
    width: 104px;
    height: 76px;
    align-self: start;
  }

  .journalIssueIndexCopy strong {
    font-size: 21px;
  }

  .journalIssueIndexCopy em {
    display: none;
  }

  .journalIssueIndexCount {
    justify-self: start;
  }

  .journalIssueSection {
    padding: 44px 0 54px;
  }

  .journalIssueSectionHeader {
    grid-template-columns: 1fr;
    grid-template-areas:
      "thumb"
      "title";
    direction: rtl;
    gap: 19px;
  }

  .journalIssueSectionThumb {
    width: 100%;
    height: min(52vw,210px);
  }

  .journalIssueSectionTitle h2 {
    font-size: 29px;
  }

  .journalIssueArticle {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "blurb";
    direction: rtl;
    gap: 12px;
    padding: 27px 0 30px;
  }

  .journalIssueArticleTitle {
    font-size: 23px;
  }

  .journalIssueArticleBlurb {
    font-size: 18px;
  }

  .journalIssuePageIntroInner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cover"
      "copy";
    gap: 23px;
  }

  .journalIssuePageCover {
    width: 100%;
    height: min(54vw,230px);
  }

  .journalIssuePageCopy h1 {
    font-size: 19px;
    line-height: 1.4;
  }
}


/* ==========================================================================
   v11 — گاه‌نامه master TOC + infinite post feed
   ========================================================================== */

.journalMasterToc {
  display: grid;
  gap: 28px;
  margin-top: 3px;
}

.journalMasterTocIssue {
  padding: 0 0 23px;
  border-bottom: 1px solid rgba(0,0,0,.09);
}

.journalMasterTocIssueTitle {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: inherit;
  direction: rtl;
  text-align: right;
  cursor: pointer;
}

.journalMasterTocIssueTitle > span {
  color: var(--route-accent);
  font: 13px/1.4 Niloofar,serif;
}

.journalMasterTocIssueTitle > strong {
  font: 400 25px/1.45 Niloofar,serif;
}

.journalMasterTocIssueTitle > small {
  color: #777;
  white-space: nowrap;
  font: 13px/1.4 Mashin,Niloofar,serif;
}

.journalMasterTocIssueTitle:hover > strong,
.journalMasterTocIssueTitle:focus-visible > strong {
  color: var(--route-accent);
}

.journalMasterTocPosts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 38px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.journalMasterTocPosts a {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 9px;
  padding: 8px 0 9px;
  border-bottom: 1px solid rgba(0,0,0,.055);
  color: inherit;
  text-decoration: none;
  direction: rtl;
}

.journalMasterTocPosts a > span {
  color: #999;
  direction: ltr;
  text-align: left;
  font: 12px/1.5 Niloofar,serif;
}

.journalMasterTocPosts a > b {
  font: 400 16px/1.62 Mashin,Niloofar,serif;
}

.journalMasterTocPosts a:hover > b,
.journalMasterTocPosts a:focus-visible > b {
  color: var(--route-accent);
}

.journalFeedSection {
  background: var(--route-white);
}

.journalFeedInner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 46px 90px;
}

.journalFeed {
  display: block;
}

.journalIssueBand {
  margin: 58px 0 0;
  background: #363634;
  color: #f3f1eb;
  scroll-margin-top: 18px;
}

.journalIssueBand:first-child {
  margin-top: 0;
}

.journalIssueBandInner {
  min-height: 72px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 24px 17px;
  direction: rtl;
}

.journalIssueBandInner > span {
  flex: 0 0 auto;
  color: var(--route-accent);
  font: 14px/1.4 Mashin,Niloofar,serif;
}

.journalIssueBandInner > h2 {
  flex: 1 1 auto;
  margin: 0;
  text-align: right;
  font: 400 29px/1.35 Niloofar,serif;
}

.journalFeedPost {
  display: grid;
  grid-template-columns: minmax(0,1fr) 184px;
  grid-template-areas: "copy thumb";
  gap: 28px;
  align-items: start;
  padding: 31px 0 34px;
  border-bottom: 1px solid var(--route-soft);
  direction: ltr;
}

.journalFeedPostThumb {
  grid-area: thumb;
  width: 184px;
  height: 118px;
  display: block;
  overflow: hidden;
  background: #0b0b0b;
  text-decoration: none;
}

.journalPostThumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .22s ease, filter .22s ease;
}

.journalFeedPostThumb:hover .journalPostThumb,
.journalFeedPostThumb:focus-visible .journalPostThumb {
  transform: scale(1.025);
  filter: contrast(1.02);
}

.journalPostFallbackThumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #0b0b0b;
}

.journalPostFallbackThumb img {
  width: 82px;
  height: 38px;
  object-fit: contain;
  opacity: .88;
}

.journalFeedPostCopy {
  grid-area: copy;
  min-width: 0;
  direction: rtl;
  text-align: right;
}

.journalFeedPostTitle {
  display: inline;
  color: #171717;
  text-decoration: none;
  font: 400 26px/1.46 Niloofar,serif;
}

.journalFeedPostTitle::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  background: var(--route-accent);
  vertical-align: .14em;
}

.journalFeedPostTitle:hover,
.journalFeedPostTitle:focus-visible {
  color: var(--route-accent);
}

.journalFeedPostBlurb {
  margin-top: 11px;
  color: #30302f;
  white-space: pre-line;
  font: 18px/1.78 Mashin,Niloofar,serif;
}

.journalFeedSentinel {
  min-height: 78px;
  display: grid;
  place-items: center;
}

.journalFeedSentinel[hidden] {
  display: none !important;
}

.journalFeedSentinelDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,.14);
  transition: transform .18s ease, background .18s ease;
}

.journalFeedSentinel.isLoading .journalFeedSentinelDot {
  background: var(--route-accent);
  animation: journalSentinelPulse .85s ease-in-out infinite alternate;
}

@keyframes journalSentinelPulse {
  to { transform: scale(1.55); opacity: .45; }
}

/* Direct child issue page: no fake "issue thumbnail". */
.journalIssueSimpleIntro {
  background: #e8e8e4;
  border-bottom: 1px solid var(--route-rule);
}

.journalIssueSimpleIntroInner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 49px 46px 50px;
  direction: rtl;
  text-align: right;
}

.journalIssueSimpleIntroInner > span {
  color: var(--route-accent);
  font: 14px/1.4 Mashin,Niloofar,serif;
}

.journalIssueSimpleIntroInner h1 {
  margin: 6px 0 10px;
  font: 400 38px/1.3 Niloofar,serif;
}

.journalIssueSimpleIntroInner p {
  max-width: 780px;
  margin: 0 0 14px;
  white-space: pre-line;
  color: #555;
  font: 17px/1.8 Parastoo,Niloofar,serif;
}

.journalIssueSimpleIntroInner a {
  color: #777;
  text-decoration: none;
  font: 14px/1.5 Mashin,Niloofar,serif;
}

.journalIssueSimpleIntroInner a:hover {
  color: var(--route-accent);
}

.journalIssueDirectBand {
  margin: 0 0 0;
  min-height: 72px;
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 18px 24px 17px;
  background: #363634;
  color: #f3f1eb;
  direction: rtl;
}

.journalIssueDirectBand > span {
  color: var(--route-accent);
  font: 14px/1.4 Mashin,Niloofar,serif;
}

.journalIssueDirectBand > h2 {
  margin: 0;
  font: 400 29px/1.35 Niloofar,serif;
}

.journalIssueOnlyToc {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .journalMasterTocPosts {
    grid-template-columns: 1fr;
  }

  .journalFeedInner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .journalFeedPost {
    grid-template-columns: minmax(0,1fr) 154px;
    gap: 22px;
  }

  .journalFeedPostThumb {
    width: 154px;
    height: 100px;
  }
}

@media (max-width: 640px) {
  .journalMasterTocIssueTitle {
    grid-template-columns: 24px minmax(0,1fr);
    grid-template-areas:
      "number title"
      ". count";
    gap: 4px 10px;
  }

  .journalMasterTocIssueTitle > span {
    grid-area: number;
  }

  .journalMasterTocIssueTitle > strong {
    grid-area: title;
    font-size: 22px;
  }

  .journalMasterTocIssueTitle > small {
    grid-area: count;
    justify-self: start;
  }

  .journalFeedInner,
  .journalIssueSimpleIntroInner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .journalIssueBand {
    margin-left: -20px;
    margin-right: -20px;
  }

  .journalIssueBandInner {
    min-height: 66px;
    padding: 16px 20px;
    display: block;
  }

  .journalIssueBandInner > h2 {
    margin-top: 3px;
    font-size: 25px;
  }

  .journalFeedPost {
    grid-template-columns: minmax(0,1fr) 108px;
    grid-template-areas: "copy thumb";
    gap: 16px;
    padding: 24px 0 27px;
  }

  .journalFeedPostThumb {
    width: 108px;
    height: 78px;
  }

  .journalFeedPostTitle {
    font-size: 22px;
  }

  .journalFeedPostBlurb {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.7;
  }

  .journalIssueDirectBand {
    margin-left: -20px;
    margin-right: -20px;
  }

  .journalIssueSimpleIntroInner h1 {
    font-size: 19px;
    line-height: 1.4;
  }
}


/* v14 — prose and non-poem blurbs are always justified. */
.article-body.prose,
.entry-blurb.isJustified,
.journalFeedPostBlurb.isJustified {
  text-align: justify;
  text-align-last: right;
  text-justify: inter-word;
}

/* H5AP podcast compatibility.
   The original WordPress player wrapper/data attributes stay in the article;
   this local runtime only supplies the dynamic audio/Plyr mount point. */
.wp-block-h5ap-audioplayer,
.wp-block-h5ap-tailwind[data-attributes] {
  width: 100%;
  max-width: 100%;
  margin: 1.6em 0;
  text-align: initial;
  text-align-last: initial;
}
.wp-block-h5ap-audioplayer.shamlou-h5ap-ready .h5ap_lp,
.wp-block-h5ap-tailwind.shamlou-h5ap-ready .h5ap_lp {
  display: none !important;
}
.shamlouH5apRuntime {
  max-width: 100%;
  overflow: hidden;
  direction: ltr;
  text-align: left;
  text-align-last: auto;
}
.shamlouH5apRuntime audio {
  display: block;
  width: 100%;
  max-width: 100%;
}
.shamlouH5apRuntime .plyr,
.shamlouH5apRuntime .plyr__controls {
  width: 100%;
  max-width: 100%;
  direction: ltr;
}


/* v19 — refined social icon treatment */
.route-footer-contacts{
  display:flex;
  align-items:center;
  gap:10px;
  direction:ltr;
}
.route-footer-contact{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:rgba(28,28,28,.56);
  text-decoration:none;
  transition:
    color .22s ease,
    background-color .22s ease,
    transform .22s cubic-bezier(.2,.7,.2,1),
    box-shadow .22s ease;
}
.route-footer-contact:hover,
.route-footer-contact:focus-visible{
  color:var(--route-accent);
  background:rgba(255,153,0,.08);
  transform:translateY(-2px) scale(1.05);
  box-shadow:0 5px 14px rgba(0,0,0,.06);
  outline:none;
}
.route-footer-contact:active{
  transform:translateY(0) scale(.97);
}
.route-footer-icon{
  width:15px;
  height:15px;
  display:block;
  background:currentColor;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
  transition:transform .22s cubic-bezier(.2,.7,.2,1);
}
.route-footer-contact:hover .route-footer-icon,
.route-footer-contact:focus-visible .route-footer-icon{
  transform:scale(1.06);
}
.route-footer-icon-instagram{
  -webkit-mask-image:url("/assets/icons/instagram-mask.svg");
  mask-image:url("/assets/icons/instagram-mask.svg");
}
.route-footer-icon-email{
  -webkit-mask-image:url("/assets/icons/email-mask.svg");
  mask-image:url("/assets/icons/email-mask.svg");
}
.route-footer-icon-youtube{
  -webkit-mask-image:url("/assets/icons/youtube-mask.svg");
  mask-image:url("/assets/icons/youtube-mask.svg");
}
@media (max-width:640px){
  .route-footer-contacts{gap:8px}
  .route-footer-contact{
    width:26px;
    height:26px;
  }
  .route-footer-icon{
    width:13px;
    height:13px;
  }
}
@media (prefers-reduced-motion:reduce){
  .route-footer-contact,
  .route-footer-icon,
  .footer-contact,
  .footer-icon{
    transition:none!important;
  }
}


/* v20 — guaranteed-visible refined social icons */
.route-footer-contact{
  width:28px!important;
  height:28px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%;
  text-decoration:none;
  transition:background-color .22s ease,transform .22s cubic-bezier(.2,.7,.2,1),box-shadow .22s ease;
}
.route-footer-icon{
  position:relative!important;
  width:14px!important;
  height:14px!important;
  display:block!important;
  background:none!important;
  -webkit-mask:none!important;
  mask:none!important;
}
.route-footer-icon img{
  position:absolute!important;
  inset:0!important;
  width:14px!important;
  height:14px!important;
  display:block!important;
  object-fit:contain!important;
  visibility:visible!important;
}
.route-footer-icon-base{opacity:.82;transition:opacity .2s ease,transform .2s ease}
.route-footer-icon-hover{opacity:0;transition:opacity .2s ease,transform .2s ease}
.route-footer-contact:hover,.route-footer-contact:focus-visible{
  background:rgba(255,153,0,.075);
  transform:translateY(-2px);
  box-shadow:0 5px 14px rgba(0,0,0,.055);
  outline:none;
}
.route-footer-contact:hover .route-footer-icon-base,.route-footer-contact:focus-visible .route-footer-icon-base{
  opacity:0;transform:scale(1.08)
}
.route-footer-contact:hover .route-footer-icon-hover,.route-footer-contact:focus-visible .route-footer-icon-hover{
  opacity:1;transform:scale(1.08)
}
.route-footer-contact:active{transform:translateY(0) scale(.96)}
@media(max-width:640px){
  .route-footer-contact{width:25px!important;height:25px!important}
  .route-footer-icon,.route-footer-icon img{width:12px!important;height:12px!important}
}
@media(prefers-reduced-motion:reduce){
  .route-footer-contact,.route-footer-icon img{transition:none!important}
}


/* v21 — Poesies-style social links + mobile viewport containment */
html,body{width:100%;max-width:100%;overflow-x:hidden}
body,#app{position:relative;min-width:0}
#app,#app>*,.route-site-header,.route-footer-top,.route-footer-bottom,.reading-page,.category-intro,.category-listing,.journalRoot,.journalIssuePage,.journalFeedSection{max-width:100%}
.shamlou-social-links{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;direction:ltr!important;flex:0 0 auto!important}
.shamlou-social-link{width:31px!important;height:31px!important;display:grid!important;place-items:center!important;flex:0 0 auto!important;border:1px solid rgba(25,24,23,.16)!important;border-radius:50%!important;color:#66615b!important;background:rgba(255,255,255,.08)!important;text-decoration:none!important;transition:transform .18s ease,color .18s ease,border-color .18s ease,background-color .18s ease!important}
.shamlou-social-link svg{width:15px!important;height:15px!important;display:block!important;overflow:visible!important;fill:none!important;stroke:currentColor!important;stroke-width:1.55!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.shamlou-social-link svg .iconDot,.shamlou-social-link svg .iconPlay{fill:currentColor!important;stroke:none!important}
.shamlou-social-link:hover{transform:translateY(-2px)!important;color:var(--route-accent)!important;border-color:rgba(255,153,0,.48)!important;background:rgba(255,153,0,.065)!important}
.shamlou-social-link:focus-visible{color:var(--route-accent)!important;border-color:var(--route-accent)!important;outline:1px solid var(--route-accent)!important;outline-offset:3px!important}
.shamlou-social-link:active{transform:translateY(0) scale(.97)!important}
.article-body,.category-entry>*,.journalFeedPost>*,.journalMasterTocIssue,.journalIssueArticle>*{min-width:0;max-width:100%}
.article-body.prose{overflow-wrap:anywhere}
.article-body.poem{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
@media(max-width:640px){
  #app,#app>*,.route-site-header,.reading-page,.category-band,.category-band-inner,.category-intro,.category-intro-inner,.category-listing,.category-list-inner,.journalRoot,.journalRootIntro,.journalRootIntroInner,.journalFeedSection,.journalFeedInner,.journalIssuePage,.journalIssueSimpleIntro,.journalIssueSimpleIntroInner{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .route-footer-top-inner,.route-footer-bottom-inner,.route-footer-brand,.route-footer-names,.route-footer-copy{min-width:0!important;max-width:100%!important}
  .route-footer-bottom-inner{width:100%!important;overflow:hidden!important}
  .route-footer-copyright{white-space:normal!important;max-width:42%!important;overflow-wrap:anywhere!important}
  .route-footer-copy{white-space:normal!important}
  .shamlou-social-links{gap:7px!important}.shamlou-social-link{width:28px!important;height:28px!important}.shamlou-social-link svg{width:13px!important;height:13px!important}
}
@media(prefers-reduced-motion:reduce){.shamlou-social-link{transition:none!important}}





/* v23 — mobile footer typography alignment */
.route-footer-copyright .copyright-line{
  display:inline;
}
@media(max-width:640px){
  .route-footer-copy{
    font-size:9px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
  }
  .route-footer-copyright{
    white-space:normal!important;
    line-height:1.28!important;
    max-width:none!important;
    width:auto!important;
    overflow:visible!important;
  }
  .route-footer-copyright .copyright-line{
    display:block!important;
    white-space:nowrap!important;
  }
}


/* v25 — five-item mobile navigation */
@media(max-width:640px){
  .main-nav,
  .route-nav{
    gap:8px 14px!important;
    font-size:13px!important;
  }
}


/* v26 — keep single-reading whitespace on the reading surface */
html.shamlou-dynamic-route,
html.shamlou-dynamic-route body{
  background:var(--route-white);
}


/* v29 six-item route navigation */
@media(max-width:640px){.route-nav{gap:7px 11px!important;font-size:12.5px!important}}
