
/* Self-hosted Arabic fonts matched to uploaded fonts.zip
   Put your uploaded font files in: assets/fonts/
   No online fonts are imported. */
@font-face {
  font-family: "Taqrir Arabic Head";
  src: url("../fonts/NotoKufiArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Taqrir Arabic Head";
  src: url("../fonts/NotoKufiArabic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Taqrir Arabic Head";
  src: url("../fonts/NotoKufiArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Taqrir Arabic Head";
  src: url("../fonts/NotoKufiArabic-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Taqrir Arabic Body";
  src: url("../fonts/NotoNaskhArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Taqrir Arabic Body";
  src: url("../fonts/NotoNaskhArabic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Taqrir Arabic Body";
  src: url("../fonts/NotoNaskhArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Taqrir Arabic Body";
  src: url("../fonts/NotoNaskhArabic-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}



/*
  taqrir-premium-paper-v1
  هدف: شیک‌تر کردن حال‌وهوای کاغذ چاپ قدیمی، بدون فراخوانی تصویر خارجی.
  همه بافت‌ها با gradient / data URI داخلی CSS ساخته شده‌اند و سرعت سایت کم نمی‌شود.
*/

:root {
  --taqrir-ink: #221914;
  --taqrir-ink-2: #47372a;
  --taqrir-ink-soft: rgba(34, 25, 20, .68);
  --taqrir-line: rgba(34, 25, 20, .72);
  --taqrir-line-soft: rgba(76, 55, 36, .34);
  --taqrir-paper: #f4ead3;
  --taqrir-paper-light: #fff7df;
  --taqrir-paper-warm: #ead5aa;
  --taqrir-paper-deep: #d3b37b;
  --taqrir-gold: #8a6333;
  --taqrir-shadow: rgba(38, 25, 12, .18);
  --frame-dark: var(--taqrir-ink);
  --frame-light: #705842;
  --frame-corner-size: 28px;
  --frame-outer-width: 2.15px;
  --frame-inner-width: 1px;
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  color: var(--taqrir-ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 246, 214, .34), transparent 31rem),
    radial-gradient(circle at 86% 18%, rgba(129, 91, 45, .16), transparent 33rem),
    radial-gradient(circle at 50% 110%, rgba(47, 32, 17, .22), transparent 44rem),
    linear-gradient(135deg, #d1bd91 0%, #c4a776 42%, #a98550 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    repeating-linear-gradient(0deg, rgba(40, 28, 16, .026) 0, rgba(40, 28, 16, .026) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0, rgba(255, 255, 255, .028) 1px, transparent 1px, transparent 7px);
  mix-blend-mode: multiply;
}

.a3-page,
.archive-shell,
.details-article,
.details-index {
  color: var(--taqrir-ink);
}

.a3-page {
  border-radius: 8px;
  border: 1px solid rgba(64, 43, 23, .38);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 252, 232, .66), transparent 32%),
    radial-gradient(circle at 84% 9%, rgba(194, 139, 63, .10), transparent 30%),
    radial-gradient(circle at 52% 104%, rgba(126, 82, 32, .13), transparent 36%),
    linear-gradient(135deg, var(--taqrir-paper-light) 0%, var(--taqrir-paper) 48%, var(--taqrir-paper-warm) 100%);
  box-shadow:
    0 28px 70px rgba(23, 13, 5, .25),
    0 8px 18px rgba(23, 13, 5, .15),
    inset 0 0 0 1px rgba(255, 255, 255, .30),
    inset 0 0 64px rgba(105, 65, 20, .08);
}

.a3-page::before {
  opacity: .56;
  background-image:
    linear-gradient(90deg, rgba(42, 30, 17, .028) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(42, 30, 17, .020) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 13px);
  background-size: 5px 5px, 6px 6px, auto;
}

.a3-page::after {
  opacity: .74;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), transparent 19%, transparent 72%, rgba(98, 63, 28, .075)),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(67, 41, 18, .105) 100%);
}

.paper-noise {
  opacity: .075;
  filter: contrast(128%) brightness(108%);
}

.page-grid {
  --page-pad: 34px;
  --gap: 13px;
}

.section {
  position: relative;
}

/* هدر: حفظ شأن سنتی، اما تمیزتر و سبک‌تر */
.top-rule {
  height: 30px;
  gap: 11px;
}

.rule-line {
  border-top: 2.2px solid var(--taqrir-ink);
  box-shadow: 0 5px 0 rgba(34, 25, 20, .72);
  opacity: .96;
}

.rule-ornament,
.strip-ornament {
  color: var(--taqrir-gold);
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

.masthead-inner {
  gap: 26px;
  padding-top: 14px;
}

.brand-block {
  width: 215px;
}

.brand-lockup-img,
.masthead-title-img,
.taqrir-image-box img,
.archive-card img,
.details-image img {
  filter: sepia(.16) saturate(.92) contrast(1.05);
}

.masthead-title-img {
  max-height: 218px;
  filter: sepia(.10) saturate(.94) contrast(1.08) drop-shadow(0 1px 0 rgba(255,255,255,.55));
}

/* نوار شماره */
.issue-strip {
  border: 1.55px solid var(--taqrir-line);
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent),
    rgba(255, 244, 218, .34);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(88, 58, 28, .14);
  font-size: 20px;
  letter-spacing: -.01em;
}

/* کارت‌ها */
.newspaper-card {
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.05)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.22), transparent 52%),
    rgba(244, 232, 201, .31);
  box-shadow:
    0 7px 16px rgba(43, 27, 12, .08),
    inset 0 0 0 1px rgba(255,255,255,.22),
    inset 0 -18px 46px rgba(109, 75, 33, .045);
}

.newspaper-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(52, 35, 17, .018) 0, rgba(52, 35, 17, .018) 1px, transparent 1px, transparent 7px),
    linear-gradient(90deg, rgba(255,255,255,.16), transparent 26%, transparent 74%, rgba(61,39,18,.045));
  mix-blend-mode: multiply;
}

.card-content {
  z-index: 7;
}

.frame {
  opacity: .92;
}

.frame .edge.outer.top,
.frame .edge.outer.bottom,
.frame .edge.outer.left,
.frame .edge.outer.right {
  opacity: .96;
}

.frame .edge.inner.top,
.frame .edge.inner.bottom,
.frame .edge.inner.left,
.frame .edge.inner.right {
  opacity: .68;
}

.simple-card {
  border: 1.55px solid var(--taqrir-line);
  box-shadow:
    0 7px 16px rgba(43, 27, 12, .075),
    inset 0 0 0 1px rgba(255,255,255,.24),
    inset 0 0 0 4px rgba(255, 245, 218, .17);
}

.side-card { padding: 24px 20px 19px; }
.main-card { padding: 28px 27px 20px; }
.bottom-card { padding: 19px 19px 16px; }

/* تیترها و متن‌ها */
.taqrir-section-title,
.side-title,
.bottom-card h2 {
  color: var(--taqrir-ink);
  border-bottom-color: rgba(34, 25, 20, .72) !important;
  letter-spacing: -.02em;
  text-shadow: 0 1px 0 rgba(255,255,255,.42);
}

.taqrir-section-title {
  margin-top: .02rem;
  padding-bottom: .48rem;
  font-size: clamp(.92rem, 1.58vw, 1.08rem) !important;
}

.taqrir-section-title::before,
.taqrir-section-title::after,
.details-section-label::before,
.details-section-label::after,
.details-index h2::before,
.details-index h2::after {
  color: var(--taqrir-gold);
  opacity: .94;
}

.taqrir-main-title,
.main-card h1,
.main-card h2 {
  color: #1d1510;
  letter-spacing: -.035em;
  text-shadow:
    0 1px 0 rgba(255,255,255,.50),
    0 6px 14px rgba(75, 50, 22, .08);
}

.taqrir-main-title {
  margin-top: .02rem !important;
}

.taqrir-main-subtitle {
  border-top-color: rgba(34,25,20,.68) !important;
  border-bottom-color: rgba(34,25,20,.68) !important;
  color: var(--taqrir-ink-2);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent) !important;
}

.taqrir-main-summary,
.taqrir-item-summary,
.taqrir-bottom-text,
.taqrir-bottom-list,
.news-item p,
.bottom-card p,
.bottom-card li,
.details-body-text {
  color: rgba(29, 21, 16, .92);
  font-weight: 690 !important;
}

.taqrir-item {
  border-top-color: rgba(34, 25, 20, .38);
  padding-top: .50rem;
  margin-top: .50rem;
}

.taqrir-item-title {
  color: #1f1712;
  letter-spacing: -.012em;
  line-height: 1.72;
}

/* تصاویر داخلی موجود: قاب کلاسیک‌تر، بدون بارگذاری تصویر جدید */
.taqrir-image-box,
.photo-img,
.hero-img,
.qr-img,
.image-placeholder,
.details-image,
.archive-card img {
  border: 1.3px solid rgba(34,25,20,.82) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), rgba(99,67,31,.08)),
    rgba(169, 127, 67, .13);
  box-shadow:
    0 5px 12px rgba(50, 31, 13, .10),
    inset 0 0 0 3px rgba(255,255,255,.12);
}

.taqrir-image-box {
  border-radius: 3px;
}

.taqrir-image-box.main-image {
  margin: .52rem auto .42rem;
}

.taqrir-image-box.side-image {
  width: 84%;
  margin-bottom: .35rem;
}

.taqrir-image-box.bottom-image {
  width: 66%;
}

/* لینک‌ها و دکمه‌های کوچک */
.taqrir-readmore,
.read-more,
.page-ref {
  color: var(--taqrir-ink-2) !important;
  border-bottom: 1px solid rgba(71, 55, 42, .55) !important;
  font-weight: 850 !important;
  opacity: .92;
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease;
}

.taqrir-readmore:hover,
.read-more:hover,
.page-ref:hover,
.card-content a:hover {
  opacity: 1;
  border-color: var(--taqrir-ink) !important;
  text-decoration: none !important;
}

.site-pill,
.site-toolbar a.active,
.site-toolbar button.active {
  background: linear-gradient(180deg, #2f241b, #1e1611) !important;
  color: #f7e9c9 !important;
}

/* فوتر */
.footer-bar {
  border-top: 1.7px solid var(--taqrir-line);
  border-bottom: 1.7px solid var(--taqrir-line);
  background:
    linear-gradient(90deg, rgba(255,255,255,.13), transparent, rgba(255,255,255,.08)),
    rgba(255, 244, 218, .25);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

.footer-item {
  border-left-color: rgba(34,25,20,.45);
  color: var(--taqrir-ink-2);
}

/* نوار ابزار */
.site-toolbar,
.details-topbar {
  border: 1px solid rgba(44, 31, 18, .38) !important;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,255,255,.14)),
    rgba(242, 226, 193, .76) !important;
  box-shadow: 0 12px 30px rgba(32, 20, 10, .15) !important;
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.site-toolbar a,
.site-toolbar button,
.details-topbar a {
  border-color: rgba(34,25,20,.34) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.site-toolbar a:hover,
.site-toolbar button:hover,
.details-topbar a:hover {
  background: rgba(255,255,255,.36) !important;
  border-color: rgba(34,25,20,.56) !important;
  text-decoration: none;
}

/* آرشیو */
.archive-shell {
  border-radius: 12px;
  border: 1px solid rgba(64, 43, 23, .38);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.38), transparent 34%),
    linear-gradient(135deg, #fff1d3 0%, #f2e2bf 50%, #dfc390 100%);
  box-shadow:
    0 24px 58px rgba(28, 16, 6, .22),
    inset 0 0 0 1px rgba(255,255,255,.30),
    inset 0 0 70px rgba(105, 65, 20, .09);
}

.archive-title {
  color: var(--taqrir-ink);
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

.archive-card {
  border: 1.35px solid rgba(34,25,20,.74);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.06)),
    rgba(247, 235, 207, .48);
  box-shadow:
    0 10px 24px rgba(41, 25, 10, .12),
    inset 0 0 0 1px rgba(255,255,255,.20);
  transition: transform .16s ease, box-shadow .16s ease;
}

.archive-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 15px 32px rgba(41, 25, 10, .17),
    inset 0 0 0 1px rgba(255,255,255,.24);
}

.archive-card h2 {
  color: var(--taqrir-ink);
}

.archive-card .meta {
  border-top-color: rgba(34,25,20,.38);
  color: var(--taqrir-ink-2);
}

/* صفحه مشروح */
.details-body {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 246, 214, .34), transparent 31rem),
    radial-gradient(circle at 86% 18%, rgba(129, 91, 45, .16), transparent 33rem),
    linear-gradient(135deg, #d1bd91 0%, #b9925a 100%) !important;
}

.details-index,
.details-article {
  border-radius: 10px;
}

.details-index {
  border: 1.3px solid rgba(34,25,20,.70) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.06)),
    rgba(248, 235, 207, .62) !important;
  box-shadow:
    0 11px 27px rgba(39,24,10,.12),
    inset 0 0 0 1px rgba(255,255,255,.22);
}

.details-article {
  border: 1.35px solid rgba(34,25,20,.74) !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255,255,255,.38), transparent 34%),
    linear-gradient(135deg, #fff3d7 0%, #f3e1bd 58%, #e2c794 100%) !important;
  box-shadow:
    0 18px 42px rgba(34, 20, 8, .17),
    inset 0 0 0 1px rgba(255,255,255,.30),
    inset 0 -26px 60px rgba(108, 72, 30, .06) !important;
}

.details-article::before {
  opacity: .82;
  background-image:
    repeating-linear-gradient(0deg, rgba(72, 48, 22, .017) 0, rgba(72, 48, 22, .017) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.030) 0, rgba(255,255,255,.030) 1px, transparent 1px, transparent 8px) !important;
}

.details-article h1 {
  color: var(--taqrir-ink);
  letter-spacing: -.025em;
  text-shadow: 0 1px 0 rgba(255,255,255,.46);
}

.details-section-label,
.details-index h2 {
  color: var(--taqrir-ink-2);
  border-bottom-color: rgba(34,25,20,.48) !important;
}

.details-body-text p {
  margin-bottom: 1.05rem;
}

/* واکنش‌گرا */
@media (max-width: 900px) {
  body { padding: 14px; }
  .a3-page { border-radius: 10px; }
  .page-grid { --page-pad: 18px; --gap: 14px; }
  .masthead-inner { grid-template-columns: 1fr; gap: 12px; }
  .brand-block { width: 100%; justify-self: center; }
  .brand-lockup-img { width: min(160px, 42vw); max-height: 170px; }
  .masthead-title-img { width: min(100%, 620px); max-height: 160px; }
  /* نوار شماره/موضوع/تاریخ در موبایل هم یک‌سطره بماند */
  .issue-strip {
    grid-template-columns: minmax(0, .85fr) 18px minmax(0, 1.45fr) 18px minmax(0, .85fr);
    gap: 4px;
    padding: 8px 8px;
    font-size: clamp(12px, 2.55vw, 16px);
    line-height: 1.55;
    white-space: nowrap;
  }
  .issue-strip > * {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .strip-ornament {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    font-size: clamp(13px, 2.7vw, 16px);
  }
  .newspaper-card { min-height: auto; }
  .side-card, .main-card, .bottom-card { padding: 22px 18px; }
  .taqrir-image-box.side-image,
  .taqrir-image-box.bottom-image { width: min(100%, 420px); }
  .footer-bar { grid-template-columns: 1fr; }
  .footer-item { border-left: 0; border-bottom: 1px solid rgba(34,25,20,.26); }
  .footer-item:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  body { padding: 10px; }
  .site-toolbar { width: calc(100% - 2px); }
  .taqrir-main-title { font-size: clamp(1.75rem, 10vw, 2.55rem) !important; }
  .taqrir-main-summary,
  .taqrir-item-summary,
  .taqrir-bottom-text,
  .taqrir-bottom-list { font-size: 13.8px !important; }
  .details-body { padding: 12px !important; }
  .details-article { padding: 22px 18px !important; }
}

@media print {
  body,
  .details-body {
    background: none !important;
  }
  body::before { display: none !important; }
  .a3-page,
  .archive-shell,
  .details-article,
  .details-index {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .site-toolbar,
  .details-topbar { display: none !important; }
  .taqrir-readmore,
  .read-more,
  .page-ref { display: none !important; }
}


/* ===============================
   details page refinement v2
   خواسته کاربر: حذف گرادینت تند از متن کامل‌ها و هماهنگی بیشتر با صفحه اصلی
   =============================== */

.details-shell {
  width: min(100%, 1180px);
}

.details-topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px !important;
  border-radius: 18px !important;
  overflow: hidden;
}

.details-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.20), transparent 18%, transparent 82%, rgba(107, 72, 30, .10)),
    repeating-linear-gradient(0deg, rgba(79, 58, 35, .025) 0, rgba(79, 58, 35, .025) 1px, transparent 1px, transparent 7px);
  opacity: .9;
}

.details-topbar > * {
  position: relative;
  z-index: 1;
}

.details-topbar-title {
  order: 3;
  font-size: 1rem;
  font-weight: 900;
  color: var(--taqrir-ink-2);
  white-space: nowrap;
}

.details-meta {
  order: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--taqrir-ink);
  letter-spacing: -.01em;
}

.details-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
}

.details-meta span:nth-child(2n) {
  color: var(--taqrir-gold);
  font-size: 1.05rem;
  opacity: .95;
}

#details-back {
  order: 1;
  justify-self: start;
  padding: .62rem 1.05rem;
  font-size: 1rem;
  font-weight: 900;
}

.details-root {
  gap: 20px;
}

.details-index,
.details-article {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.details-index::before,
.details-article::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.details-index {
  padding: 28px 32px 24px;
  border: 1.35px solid rgba(34,25,20,.72) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.08)),
    radial-gradient(circle at 12% 6%, rgba(255,255,255,.42), transparent 26%),
    #f3e6cb !important;
  box-shadow:
    0 12px 30px rgba(39,24,10,.12),
    inset 0 0 0 1px rgba(255,255,255,.24),
    inset 0 -24px 52px rgba(104, 72, 31, .035) !important;
}

.details-index::before {
  background-image:
    repeating-linear-gradient(0deg, rgba(72, 48, 22, .018) 0, rgba(72, 48, 22, .018) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 9px);
  opacity: .8;
}

.details-index > * {
  position: relative;
  z-index: 1;
}

.details-index h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 950;
  text-align: center;
  border-bottom: 1.5px solid rgba(34,25,20,.46) !important;
}

.details-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 22px;
}

.details-index li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.details-index a {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(61, 43, 21, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  color: var(--taqrir-ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.details-index a::before {
  content: "❖";
  color: var(--taqrir-gold);
  margin-left: 10px;
  font-size: .95em;
}

.details-index a:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.30);
  border-color: rgba(61, 43, 21, .42);
  box-shadow: 0 8px 18px rgba(39,24,10,.08), inset 0 1px 0 rgba(255,255,255,.28);
}

.details-article {
  padding: 34px 42px 36px !important;
  border: 1.35px solid rgba(34,25,20,.74) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05)),
    radial-gradient(circle at 14% 5%, rgba(255,255,255,.40), transparent 26%),
    #f4e7cc !important;
  box-shadow:
    0 18px 42px rgba(34, 20, 8, .16),
    inset 0 0 0 1px rgba(255,255,255,.28),
    inset 0 -28px 58px rgba(108, 72, 30, .03) !important;
}

.details-article::before {
  opacity: .86;
  background-image:
    repeating-linear-gradient(0deg, rgba(72, 48, 22, .018) 0, rgba(72, 48, 22, .018) 1px, transparent 1px, transparent 6px),
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 20%, transparent 80%, rgba(79, 53, 22, .03));
}

.details-section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 12px;
  padding: 7px 16px 6px;
  border: 1px solid rgba(138, 99, 51, .45);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.08)),
    rgba(235, 217, 181, .88);
  color: #6b4a28;
  font-size: .96rem;
  font-weight: 950;
  letter-spacing: -.01em;
  box-shadow:
    0 6px 18px rgba(68,45,20,.07),
    inset 0 1px 0 rgba(255,255,255,.34);
}

.details-section-label:empty {
  display: none;
}

.details-section-label::before,
.details-section-label::after {
  content: "✦";
  color: var(--taqrir-gold);
  font-size: .8em;
  opacity: .9;
}

.details-article h1 {
  margin: 0 auto 18px;
  max-width: 900px;
  text-align: center;
  font-size: clamp(1.8rem, 2.6vw, 2.55rem);
  line-height: 1.45;
}

.details-image {
  margin: 0 auto 18px;
  width: min(100%, 760px);
}

.details-image img {
  display: block;
  width: 100%;
  height: auto;
}

.details-body-text {
  margin-top: 10px;
}

.details-body-text p {
  margin: 0 0 1.05rem;
  text-align: justify;
  text-justify: inter-word;
  line-height: 2.35;
  font-size: 1.18rem;
  text-indent: 1.6em;
}

.details-body-text p:first-child {
  text-indent: 0;
}

@media (max-width: 900px) {
  .details-topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .details-topbar-title,
  .details-meta,
  #details-back {
    order: initial;
    justify-self: center;
  }
  .details-index ul {
    columns: 1;
  }
  .details-article {
    padding: 24px 22px 28px !important;
  }
}

@media (max-width: 560px) {
  .details-index {
    padding: 20px 16px 18px;
  }
  .details-index a {
    padding: 10px 12px;
    line-height: 1.8;
  }
  .details-body-text p {
    font-size: 1.03rem;
    line-height: 2.18;
    text-indent: 1.1em;
  }
}




/* issue strip mobile single-line patch v4 */
@media (max-width: 900px) {
  .issue-strip {
    grid-template-columns: minmax(0, .85fr) 18px minmax(0, 1.45fr) 18px minmax(0, .85fr) !important;
    gap: 4px !important;
    padding: 8px 8px !important;
    font-size: clamp(12px, 2.55vw, 16px) !important;
    line-height: 1.55 !important;
    white-space: nowrap !important;
  }
  .issue-strip > * {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .strip-ornament {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    font-size: clamp(13px, 2.7vw, 16px) !important;
  }
  .details-meta {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: clamp(12px, 2.65vw, 15px) !important;
    gap: 5px !important;
  }
  .details-meta span {
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .issue-strip {
    grid-template-columns: minmax(0, .75fr) 12px minmax(0, 1.55fr) 12px minmax(0, .78fr) !important;
    gap: 2px !important;
    padding: 7px 6px !important;
    font-size: clamp(10.8px, 2.85vw, 12.8px) !important;
  }
  .strip-ornament {
    font-size: 11px !important;
  }
}


/* mobile readability patch v5
   خواسته کاربر: در موبایل متن‌ها خواناتر و بزرگ‌تر باشند؛ ستون درازتر شدن مانعی ندارد. */
@media (max-width: 900px) {
  .newspaper-card,
  .card-content,
  .main-card,
  .main-card .card-content,
  .main-rendered,
  .bottom-card,
  .side-card {
    overflow: visible !important;
  }

  .newspaper-card {
    min-height: auto !important;
  }

  .side-card,
  .main-card,
  .bottom-card {
    padding: 24px 20px !important;
  }

  .taqrir-main-title,
  .main-rendered .main-title,
  .main-card h1 {
    font-size: clamp(2.35rem, 9vw, 3.55rem) !important;
    line-height: 1.28 !important;
    margin-bottom: .5rem !important;
  }

  .main-card h2,
  .taqrir-main-subtitle,
  .main-rendered .main-subtitle {
    font-size: clamp(1.05rem, 4.3vw, 1.32rem) !important;
    line-height: 1.75 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .taqrir-section-title,
  .side-title,
  .bottom-card h2 {
    font-size: clamp(1.16rem, 4.6vw, 1.46rem) !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .taqrir-item-title,
  .news-item h3,
  .bottom-card h3 {
    font-size: clamp(1.08rem, 4.2vw, 1.30rem) !important;
    line-height: 1.75 !important;
    margin-bottom: .45rem !important;
  }

  .taqrir-main-summary,
  .main-rendered .main-summary,
  .taqrir-item-summary,
  .taqrir-bottom-text,
  .taqrir-bottom-list,
  .news-item p,
  .main-card p,
  .bottom-card p,
  .bottom-card li {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    max-height: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: clamp(16.5px, 4.15vw, 18.2px) !important;
    line-height: 2.08 !important;
    font-weight: 760 !important;
    text-align: justify !important;
  }

  .taqrir-bottom-list li,
  .bottom-card li {
    margin-bottom: .5rem !important;
  }

  .taqrir-readmore,
  .read-more,
  .page-ref {
    font-size: clamp(14.5px, 3.7vw, 16px) !important;
    line-height: 1.8 !important;
    margin-top: .7rem !important;
    font-weight: 900 !important;
  }

  .details-article h1 {
    font-size: clamp(1.78rem, 7.1vw, 2.42rem) !important;
    line-height: 1.55 !important;
  }

  .details-section-label,
  .details-index h2 {
    font-size: clamp(1.08rem, 4.4vw, 1.35rem) !important;
    line-height: 1.65 !important;
  }

  .details-index a {
    font-size: clamp(16.5px, 4.15vw, 18.2px) !important;
    line-height: 2.05 !important;
  }

  .details-body-text,
  .details-body-text p {
    font-size: clamp(17.3px, 4.35vw, 19.3px) !important;
    line-height: 2.28 !important;
    font-weight: 720 !important;
  }

  .archive-card h2 {
    font-size: clamp(1.16rem, 4.6vw, 1.42rem) !important;
    line-height: 1.75 !important;
  }

  .archive-card .meta {
    font-size: clamp(14.5px, 3.7vw, 16px) !important;
    line-height: 1.85 !important;
  }
}

@media (max-width: 430px) {
  .taqrir-main-summary,
  .main-rendered .main-summary,
  .taqrir-item-summary,
  .taqrir-bottom-text,
  .taqrir-bottom-list,
  .news-item p,
  .main-card p,
  .bottom-card p,
  .bottom-card li {
    font-size: 16.6px !important;
    line-height: 2.06 !important;
  }

  .taqrir-item-title,
  .news-item h3,
  .bottom-card h3 {
    font-size: 1.08rem !important;
  }

  .details-body-text,
  .details-body-text p {
    font-size: 17.2px !important;
    line-height: 2.24 !important;
  }
}


/* Arabic masthead title enlargement */
html[lang="ar"] .title-image-block {
  justify-content: center;
}

html[lang="ar"] .masthead-title-img {
  width: min(98%, 920px);
  max-height: 280px;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  html[lang="ar"] .masthead-title-img {
    width: min(100%, 760px);
    max-height: 200px;
  }
}




/* Arabic typography: previous-style official Arabic look, local-only.
   No Google Fonts / no online font import. */
html[lang="ar"] body {
  font-family:
    "Taqrir Arabic Body",
    "Noto Naskh Arabic",
    "Dubai",
    "Tahoma",
    "Arial",
    sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: 0 !important;
}

/* Arabic headings/UI: back to the previous cleaner official Kufi-like feel */
html[lang="ar"] .site-toolbar,
html[lang="ar"] .toolbar-group,
html[lang="ar"] .toolbar-title,
html[lang="ar"] .issue-strip,
html[lang="ar"] .taqrir-section-title,
html[lang="ar"] .taqrir-main-kicker,
html[lang="ar"] .taqrir-main-title,
html[lang="ar"] .taqrir-item-title,
html[lang="ar"] .details-topbar,
html[lang="ar"] .details-topbar-title,
html[lang="ar"] .details-section-label,
html[lang="ar"] .details-index h2,
html[lang="ar"] .archive-title,
html[lang="ar"] .archive-card h2,
html[lang="ar"] .taqrir-readmore,
html[lang="ar"] .footer-bar {
  font-family:
    "Taqrir Arabic Head",
    "Noto Kufi Arabic",
    "Dubai",
    "Cairo",
    "Tajawal",
    "Tahoma",
    "Arial",
    sans-serif;
  letter-spacing: 0 !important;
}

/* Arabic body text: readable Arabic newspaper text */
html[lang="ar"] .taqrir-main-summary,
html[lang="ar"] .taqrir-item-summary,
html[lang="ar"] .taqrir-bottom-text,
html[lang="ar"] .details-body-text,
html[lang="ar"] .details-body-text p,
html[lang="ar"] .archive-card .meta {
  font-family:
    "Taqrir Arabic Body",
    "Noto Naskh Arabic",
    "Dubai",
    "Tahoma",
    "Arial",
    sans-serif;
  letter-spacing: 0 !important;
  line-height: 2.05;
  font-weight: 400;
}

/* Main Arabic headline: obey title_line_1 / title_line_2 and never auto-wrap into 3 lines */
html[lang="ar"] .taqrir-main-title {
  font-size: clamp(2.75rem, 3.85vw, 5.05rem);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: 0 !important;
  text-wrap: nowrap;
}

html[lang="ar"] .taqrir-main-title .line {
  display: block;
  white-space: nowrap;
}

/* Side Arabic titles: a little smaller, controlled, maximum three lines */
html[lang="ar"] .side-card .taqrir-section-title,
html[lang="ar"] .bottom-card .taqrir-section-title {
  font-size: clamp(1.02rem, 1.05vw, 1.34rem);
  line-height: 1.45;
  font-weight: 800;
}

html[lang="ar"] .side-card .taqrir-item-title,
html[lang="ar"] .bottom-card .taqrir-item-title {
  font-size: clamp(.88rem, .94vw, 1.08rem);
  line-height: 1.55;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[lang="ar"] .side-card .taqrir-item-summary,
html[lang="ar"] .bottom-card .taqrir-bottom-text {
  font-size: clamp(.78rem, .82vw, .96rem);
  line-height: 1.95;
  font-weight: 400;
}

@media (max-width: 900px) {
  html[lang="ar"] .taqrir-main-title {
    font-size: clamp(2.35rem, 8.5vw, 4.4rem);
    line-height: 1.22;
  }
  html[lang="ar"] .side-card .taqrir-item-title,
  html[lang="ar"] .bottom-card .taqrir-item-title {
    font-size: clamp(.92rem, 3.4vw, 1.08rem);
  }
}


/* Arabic body text normal-weight patch */
html[lang="ar"] .taqrir-main-summary,
html[lang="ar"] .taqrir-main-summary p,
html[lang="ar"] .taqrir-item-summary,
html[lang="ar"] .taqrir-bottom-text,
html[lang="ar"] .details-body-text,
html[lang="ar"] .details-body-text p {
  font-weight: 400 !important;
}

html[lang="ar"] .taqrir-main-title,
html[lang="ar"] .taqrir-section-title,
html[lang="ar"] .taqrir-item-title {
  font-weight: 800;
}


/* Arabic desktop side-column compactness patch
   Desktop: prevent side columns from overflowing.
   Mobile: keep text larger and readable because page height is no longer constrained. */
@media (min-width: 901px) {
  html[lang="ar"] .side-card,
  html[lang="ar"] .bottom-card {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  html[lang="ar"] .side-card .taqrir-section-title {
    font-size: clamp(.94rem, .92vw, 1.18rem);
    line-height: 1.34;
    margin-bottom: 8px;
    word-spacing: 0 !important;
    letter-spacing: 0 !important;
  }

  html[lang="ar"] .side-card .taqrir-item {
    margin-top: 8px;
    padding-top: 8px;
  }

  html[lang="ar"] .side-card .taqrir-item-title {
    font-size: clamp(.78rem, .78vw, .94rem);
    line-height: 1.42;
    margin-bottom: 5px;
    word-spacing: 0 !important;
    letter-spacing: 0 !important;
  }

  html[lang="ar"] .side-card .taqrir-item-summary,
  html[lang="ar"] .side-card .taqrir-bottom-text {
    font-size: clamp(.70rem, .70vw, .84rem);
    line-height: 1.72;
    font-weight: 400 !important;
    text-align: right;
    word-spacing: 0 !important;
    letter-spacing: 0 !important;
    text-align-last: auto;
    margin-bottom: 6px;
  }

  html[lang="ar"] .side-card .taqrir-readmore {
    font-size: clamp(.70rem, .70vw, .82rem);
    line-height: 1.35;
    margin-top: 3px;
    margin-bottom: 2px;
  }

  html[lang="ar"] .side-card .taqrir-image-box {
    margin-bottom: 8px;
  }

  html[lang="ar"] .side-card .side-image img,
  html[lang="ar"] .side-card .taqrir-image-box img {
    max-height: 125px;
    object-fit: cover;
  }

  html[lang="ar"] .taqrir-item-summary,
  html[lang="ar"] .taqrir-bottom-text,
  html[lang="ar"] .taqrir-main-summary {
    word-spacing: 0 !important;
  }
}

@media (max-width: 900px) {
  html[lang="ar"] .side-card .taqrir-section-title,
  html[lang="ar"] .bottom-card .taqrir-section-title {
    font-size: clamp(1.25rem, 5.2vw, 1.75rem);
    line-height: 1.55;
  }

  html[lang="ar"] .side-card .taqrir-item-title,
  html[lang="ar"] .bottom-card .taqrir-item-title {
    font-size: clamp(1.08rem, 4.2vw, 1.38rem);
    line-height: 1.65;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }

  html[lang="ar"] .side-card .taqrir-item-summary,
  html[lang="ar"] .bottom-card .taqrir-bottom-text,
  html[lang="ar"] .taqrir-main-summary,
  html[lang="ar"] .taqrir-main-summary p {
    font-size: clamp(1rem, 3.8vw, 1.25rem);
    line-height: 2.08;
    text-align: right;
    word-spacing: 0 !important;
  }
}


/* Arabic columns final patch
   Desktop: keep side titles at previous size, justify body text, and make only body text smaller.
   Mobile: keep text large/readable. */
@media (min-width: 901px) {
  html[lang="ar"] .side-card .taqrir-section-title,
  html[lang="ar"] .bottom-card .taqrir-section-title {
    font-size: clamp(1.02rem, 1.05vw, 1.34rem) !important;
    line-height: 1.45 !important;
    font-weight: 800;
  }

  html[lang="ar"] .side-card .taqrir-item-title,
  html[lang="ar"] .bottom-card .taqrir-item-title {
    font-size: clamp(.78rem, .78vw, .94rem);
    line-height: 1.42;
    font-weight: 800;
  }

  html[lang="ar"] .side-card .taqrir-item-summary,
  html[lang="ar"] .side-card .taqrir-bottom-text,
  html[lang="ar"] .bottom-card .taqrir-bottom-text {
    font-size: clamp(.66rem, .66vw, .80rem) !important;
    line-height: 1.66 !important;
    font-weight: 400 !important;
    text-align: justify !important;
    text-align-last: right;
    word-spacing: -0.035em !important;
    letter-spacing: 0 !important;
    margin-bottom: 5px;
  }

  html[lang="ar"] .side-card .taqrir-readmore {
    font-size: clamp(.68rem, .68vw, .80rem);
    line-height: 1.3;
  }
}

@media (max-width: 900px) {
  html[lang="ar"] .side-card .taqrir-section-title,
  html[lang="ar"] .bottom-card .taqrir-section-title {
    font-size: clamp(1.25rem, 5.2vw, 1.75rem) !important;
    line-height: 1.55 !important;
  }

  html[lang="ar"] .side-card .taqrir-item-title,
  html[lang="ar"] .bottom-card .taqrir-item-title {
    font-size: clamp(1.08rem, 4.2vw, 1.38rem) !important;
    line-height: 1.65 !important;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }

  html[lang="ar"] .side-card .taqrir-item-summary,
  html[lang="ar"] .bottom-card .taqrir-bottom-text,
  html[lang="ar"] .taqrir-main-summary,
  html[lang="ar"] .taqrir-main-summary p {
    font-size: clamp(1rem, 3.8vw, 1.25rem) !important;
    line-height: 2.08 !important;
    text-align: justify !important;
    text-align-last: right;
    word-spacing: 0 !important;
  }
}


/* Bottom-center list: show up to 7 news titles compactly on desktop,
   while keeping mobile readable. */
@media (min-width: 901px) {
  .area-bottom-center .taqrir-bottom-list {
    margin-top: 8px;
    display: grid;
    gap: 5px;
  }

  .area-bottom-center .taqrir-bottom-list li {
    margin: 0;
    padding: 0 0 4px;
    line-height: 1.45;
  }

  .area-bottom-center .taqrir-bottom-list a {
    font-size: clamp(.78rem, .78vw, .95rem);
    line-height: 1.45;
  }

  html[lang="ar"] .area-bottom-center .taqrir-bottom-list a {
    font-size: clamp(.74rem, .74vw, .90rem);
    line-height: 1.42;
    word-spacing: -0.025em;
  }
}

@media (max-width: 900px) {
  .area-bottom-center .taqrir-bottom-list {
    gap: 10px;
  }

  .area-bottom-center .taqrir-bottom-list a,
  html[lang="ar"] .area-bottom-center .taqrir-bottom-list a {
    font-size: clamp(1.05rem, 4vw, 1.35rem);
    line-height: 1.8;
  }
}


/* Mobile title / toolbar / A3 print patch */
.taqrir-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(54, 38, 24, .45);
  border-radius: 999px;
  background: rgba(255, 250, 238, .78);
  color: var(--taqrir-ink, #24170f);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.taqrir-print-btn:hover {
  background: rgba(255, 244, 218, .95);
}

@media (max-width: 900px) {
  html[lang="ar"] .taqrir-main-title {
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    font-size: clamp(1.75rem, 8.2vw, 3.25rem);
    line-height: 1.18;
  }

  html[lang="ar"] .taqrir-main-title .line {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: visible;
  }

  .site-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "nav lang"
      "title title" !important;
    gap: 8px 10px !important;
    align-items: center !important;
  }

  .site-toolbar .toolbar-nav {
    grid-area: nav;
    justify-content: flex-start;
    min-width: 0;
    flex-wrap: nowrap !important;
  }

  .site-toolbar .toolbar-lang {
    grid-area: lang;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    white-space: nowrap;
  }

  .site-toolbar .toolbar-title {
    grid-area: title;
    text-align: center;
    width: 100%;
    min-width: 0;
  }

  .site-toolbar .toolbar-group a,
  .site-toolbar .taqrir-print-btn {
    flex: 0 0 auto;
  }

  .taqrir-print-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 1rem;
  }
}

@media (max-width: 430px) {
  .site-toolbar .toolbar-group a {
    padding-inline: 10px;
  }

  .taqrir-print-btn {
    min-width: 36px;
    width: 36px;
    padding: 0;
  }
}

@media print {
  @page {
    size: A3 portrait;
    margin: 0;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    width: 297mm !important;
    min-height: 420mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: visible !important;
  }

  .site-toolbar,
  .taqrir-print-btn {
    display: none !important;
  }

  .a3-page {
    width: 297mm !important;
    min-height: 420mm !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: hidden !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  .page-grid {
    min-height: 420mm !important;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}


/* Final mobile Arabic overflow fix */
@media (max-width: 900px) {
  html[lang="ar"] .main-card,
  html[lang="ar"] .main-card .card-content,
  html[lang="ar"] .taqrir-main-title {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  html[lang="ar"] .taqrir-main-title {
    width: 100% !important;
    font-size: clamp(1.45rem, 7.2vw, 2.9rem) !important;
    line-height: 1.20 !important;
    margin-inline: auto !important;
    text-align: center !important;
    letter-spacing: 0 !important;
  }

  html[lang="ar"] .taqrir-main-title .line {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: center !important;
  }

  html[lang="ar"] .taqrir-main-subtitle {
    font-size: clamp(.9rem, 3.4vw, 1.12rem) !important;
    line-height: 1.75 !important;
    padding-inline: 6px !important;
  }

  html[lang="ar"] .issue-strip {
    grid-template-columns: minmax(58px, .78fr) 14px minmax(0, 1.45fr) 14px minmax(58px, .78fr) !important;
    gap: 3px !important;
    padding: 7px 6px !important;
    font-size: clamp(10px, 2.45vw, 13px) !important;
    line-height: 1.45 !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  html[lang="ar"] .issue-strip > * {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  html[lang="ar"] .issue-strip .strip-ornament {
    font-size: clamp(10px, 2.3vw, 13px) !important;
    overflow: visible !important;
  }
}

@media (max-width: 430px) {
  html[lang="ar"] .taqrir-main-title {
    font-size: clamp(1.25rem, 6.4vw, 2.45rem) !important;
    line-height: 1.22 !important;
  }

  html[lang="ar"] .issue-strip {
    font-size: clamp(9px, 2.25vw, 12px) !important;
    grid-template-columns: minmax(50px, .75fr) 12px minmax(0, 1.5fr) 12px minmax(50px, .75fr) !important;
  }
}


/* Final fix: Arabic mobile main headline, issue strip, and A3 print */
@media (max-width: 900px) {
  html[lang="ar"] .main-card,
  html[lang="ar"] .main-card .card-content {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html[lang="ar"] .taqrir-main-title {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: clamp(1.25rem, 5.8vw, 2.25rem) !important;
    line-height: 1.23 !important;
    letter-spacing: 0 !important;
    transform: none !important;
  }

  html[lang="ar"] .taqrir-main-title .line {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: center !important;
  }

  html[lang="ar"] .taqrir-main-subtitle {
    font-size: clamp(.82rem, 3vw, 1rem) !important;
    line-height: 1.75 !important;
    padding-inline: 8px !important;
  }

  html[lang="ar"] .issue-strip {
    grid-template-columns: minmax(46px, .62fr) 12px minmax(0, 2.15fr) 12px minmax(46px, .62fr) !important;
    gap: 2px !important;
    padding: 7px 5px !important;
    line-height: 1.15 !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  html[lang="ar"] .issue-strip > * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
    line-height: 1.15 !important;
  }

  html[lang="ar"] .issue-strip [data-text="issuebar.period"] {
    font-size: clamp(8px, 1.95vw, 11px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html[lang="ar"] .issue-strip [data-text="issuebar.issue_number"],
  html[lang="ar"] .issue-strip [data-text="issuebar.date"] {
    font-size: clamp(9px, 2.1vw, 12px) !important;
  }

  html[lang="ar"] .issue-strip .strip-ornament {
    font-size: clamp(9px, 2vw, 12px) !important;
    overflow: visible !important;
  }
}

@media (max-width: 430px) {
  html[lang="ar"] .taqrir-main-title {
    width: calc(100% - 26px) !important;
    max-width: calc(100% - 26px) !important;
    font-size: clamp(1.05rem, 5.3vw, 1.9rem) !important;
    line-height: 1.25 !important;
  }

  html[lang="ar"] .issue-strip {
    grid-template-columns: minmax(42px, .58fr) 10px minmax(0, 2.25fr) 10px minmax(42px, .58fr) !important;
  }

  html[lang="ar"] .issue-strip [data-text="issuebar.period"] {
    font-size: clamp(7.2px, 1.8vw, 9.5px) !important;
  }
}

/* Strong A3 print stylesheet */
@media print {
  @page {
    size: 297mm 420mm;
    margin: 0;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    width: 297mm !important;
    height: 420mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  .site-toolbar,
  .taqrir-print-btn {
    display: none !important;
  }

  .a3-page {
    width: 297mm !important;
    height: 420mm !important;
    min-height: 420mm !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: hidden !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    background-color: #f6edd7 !important;
  }

  .page-grid {
    width: 100% !important;
    height: 100% !important;
    min-height: 420mm !important;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}


/* Responsive polish: desktop issue bar, mobile headline, bullets, magazine cover */
@media (min-width: 901px) {
  html[lang="ar"] .issue-strip {
    grid-template-columns: minmax(110px, .85fr) 22px minmax(0, 1.7fr) 22px minmax(110px, .85fr) !important;
    gap: 8px !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  html[lang="ar"] .issue-strip > * {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  html[lang="ar"] .issue-strip [data-text="issuebar.period"] {
    font-size: clamp(13px, 1.18vw, 18px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 900px) {
  html[lang="ar"] .taqrir-main-title {
    width: calc(100% - 44px) !important;
    max-width: calc(100% - 44px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    overflow: visible !important;
    font-size: clamp(1rem, 4.85vw, 1.85rem) !important;
    line-height: 1.27 !important;
    text-align: center !important;
  }

  html[lang="ar"] .taqrir-main-title .line {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: center !important;
  }

  /* Mobile: make the monitoring list visibly list-like again */
  .area-bottom-center .taqrir-bottom-list {
    list-style: none !important;
    padding-inline-start: 0 !important;
    padding-inline-end: 0 !important;
  }

  .area-bottom-center .taqrir-bottom-list li {
    position: relative;
    padding-inline-start: 1.15em !important;
    margin-bottom: .38em !important;
  }

  html[dir="rtl"] .area-bottom-center .taqrir-bottom-list li,
  html[lang="ar"] .area-bottom-center .taqrir-bottom-list li {
    padding-inline-start: 0 !important;
    padding-inline-end: 1.15em !important;
  }

  .area-bottom-center .taqrir-bottom-list li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    top: .04em;
    font-weight: 900;
    color: var(--taqrir-gold, #8c6839);
  }

  html[dir="rtl"] .area-bottom-center .taqrir-bottom-list li::before,
  html[lang="ar"] .area-bottom-center .taqrir-bottom-list li::before {
    inset-inline-start: auto;
    inset-inline-end: 0;
  }

  /* Mobile: show the whole magazine cover instead of cropping it */
  .area-bottom-right .taqrir-magazine-link,
  .area-bottom-right .taqrir-image-box.bottom-image {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .area-bottom-right .taqrir-image-box.bottom-image img,
  .area-bottom-right .bottom-image img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top !important;
  }
}

@media (max-width: 430px) {
  html[lang="ar"] .taqrir-main-title {
    width: calc(100% - 52px) !important;
    max-width: calc(100% - 52px) !important;
    font-size: clamp(.95rem, 4.55vw, 1.65rem) !important;
    line-height: 1.3 !important;
  }
}


/* Final RTL bullets fix for mobile monitoring list */
@media (max-width: 900px) {
  html[lang="ar"] .area-bottom-center .taqrir-bottom-list {
    direction: rtl !important;
    text-align: right !important;
    list-style: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  html[lang="ar"] .area-bottom-center .taqrir-bottom-list li {
    position: relative !important;
    padding-right: 1.25em !important;
    padding-left: 0 !important;
    text-align: right !important;
  }

  html[lang="ar"] .area-bottom-center .taqrir-bottom-list li::before {
    content: "•" !important;
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: .05em !important;
    font-weight: 900 !important;
    color: var(--taqrir-gold, #8c6839) !important;
  }
}


/* A3 PDF export mode: force the desktop A3 newspaper layout even from mobile */
body.pdf-exporting {
  padding: 0 !important;
  background: #fff !important;
  overflow: hidden !important;
}

body.pdf-exporting .site-toolbar {
  display: none !important;
}

body.pdf-exporting .a3-page {
  width: 1400px !important;
  height: 1980px !important;
  min-height: 1980px !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: hidden !important;
}

body.pdf-exporting .page-grid {
  --page-pad: 30px !important;
  --gap: 12px !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 2.08fr 1fr !important;
  grid-template-rows: 300px 48px minmax(0, 1fr) 280px 70px !important;
  grid-template-areas:
    "header header header"
    "issue issue issue"
    "right center left"
    "bottom-right bottom-center bottom-left"
    "footer footer footer" !important;
}

body.pdf-exporting .section-03,
body.pdf-exporting .section-04,
body.pdf-exporting .section-05,
body.pdf-exporting .section-06,
body.pdf-exporting .section-07,
body.pdf-exporting .section-08,
body.pdf-exporting .section-09,
body.pdf-exporting .newspaper-card,
body.pdf-exporting .footer-bar,
body.pdf-exporting .issue-strip,
body.pdf-exporting .masthead {
  height: 100% !important;
}

body.pdf-exporting .section-01 { grid-area: header !important; }
body.pdf-exporting .section-02 { grid-area: issue !important; }
body.pdf-exporting .section-03 { grid-area: right !important; }
body.pdf-exporting .section-04 { grid-area: center !important; }
body.pdf-exporting .section-05 { grid-area: left !important; }
body.pdf-exporting .section-06 { grid-area: bottom-right !important; }
body.pdf-exporting .section-07 { grid-area: bottom-center !important; }
body.pdf-exporting .section-08 { grid-area: bottom-left !important; }
body.pdf-exporting .section-09 { grid-area: footer !important; }

body.pdf-exporting html[lang="ar"] .issue-strip,
body.pdf-exporting .issue-strip {
  grid-template-columns: minmax(110px, .85fr) 22px minmax(0, 1.7fr) 22px minmax(110px, .85fr) !important;
}

body.pdf-exporting .area-bottom-center .taqrir-bottom-list {
  list-style: disc !important;
}


/* Prepared PDF download / magazine / mobile toolbar final patch */

/* Desktop + mobile: magazine card should show cover + title only */
.area-bottom-right .taqrir-bottom-text,
.area-bottom-right .taqrir-readmore {
  display: none !important;
}

.area-bottom-right .magazine-cover-box,
.area-bottom-right .taqrir-image-box.bottom-image {
  margin-top: 8px !important;
  margin-bottom: 10px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.area-bottom-right .magazine-cover-box img,
.area-bottom-right .taqrir-image-box.bottom-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 210px !important;
  object-fit: contain !important;
  object-position: center top !important;
}

.area-bottom-right .magazine-title-only,
.area-bottom-right .taqrir-item-title.magazine-title-only {
  margin-top: 8px !important;
  text-align: center !important;
  line-height: 1.45 !important;
}

/* Mobile toolbar: no overlapping; first row nav buttons, second row language buttons, title centered */
@media (max-width: 900px) {
  .site-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "nav"
      "title"
      "lang" !important;
    gap: 8px !important;
    justify-items: center !important;
    align-items: center !important;
    padding: 10px 8px !important;
  }

  .site-toolbar .toolbar-nav {
    grid-area: nav !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .site-toolbar .toolbar-title {
    grid-area: title !important;
    width: 100% !important;
    text-align: center !important;
    font-size: clamp(.92rem, 3.6vw, 1.1rem) !important;
    line-height: 1.6 !important;
  }

  .site-toolbar .toolbar-lang {
    grid-area: lang !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    white-space: nowrap !important;
  }

  .site-toolbar .toolbar-group a,
  .site-toolbar .taqrir-print-btn {
    height: 38px !important;
    min-width: auto !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .site-toolbar .taqrir-print-btn {
    width: 38px !important;
    padding: 0 !important;
    font-size: 1rem !important;
  }

  .area-bottom-right .magazine-cover-box img,
  .area-bottom-right .taqrir-image-box.bottom-image img {
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .area-bottom-right .magazine-title-only {
    font-size: clamp(1.15rem, 4.4vw, 1.55rem) !important;
  }
}

@media (max-width: 390px) {
  .site-toolbar .toolbar-group a {
    padding: 0 9px !important;
    font-size: .88rem !important;
  }
}


/* Language-specific prepared PDF + clearer magazine article title */
.area-bottom-right .magazine-title-wrap {
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(62,45,26,.45) !important;
  text-align: center !important;
}

.area-bottom-right .magazine-title-label {
  display: inline-block !important;
  margin-bottom: 5px !important;
  padding: 2px 9px !important;
  border: 1px solid rgba(122,90,48,.45) !important;
  border-radius: 999px !important;
  color: var(--taqrir-gold, #8c6839) !important;
  background: rgba(255,248,230,.48) !important;
  font-size: clamp(.72rem, .72vw, .88rem) !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

.area-bottom-right .magazine-title-only {
  margin: 0 !important;
  text-align: center !important;
  font-size: clamp(.92rem, .95vw, 1.18rem) !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
}

.area-bottom-right .magazine-title-only a {
  color: inherit !important;
  text-decoration: none !important;
}

@media (min-width: 901px) {
  .area-bottom-right .magazine-cover-box img,
  .area-bottom-right .taqrir-image-box.bottom-image img {
    max-height: 170px !important;
    object-fit: contain !important;
  }
}

@media (max-width: 900px) {
  .area-bottom-right .magazine-title-wrap {
    margin-top: 12px !important;
    padding-top: 10px !important;
  }

  .area-bottom-right .magazine-title-label {
    font-size: clamp(.86rem, 3.2vw, 1.05rem) !important;
  }

  .area-bottom-right .magazine-title-only {
    font-size: clamp(1.1rem, 4.4vw, 1.5rem) !important;
    line-height: 1.6 !important;
  }
}


/* Final clean magazine block + direct PDF path */
.area-bottom-right .magazine-title-label {
  display: none !important;
}

.area-bottom-right .magazine-title-wrap {
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 8px !important;
}

.area-bottom-right .taqrir-bottom-text,
.area-bottom-right .taqrir-readmore {
  display: none !important;
}

.area-bottom-right .magazine-cover-box,
.area-bottom-right .taqrir-image-box.bottom-image {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 8px auto 10px !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

.area-bottom-right .magazine-cover-box img,
.area-bottom-right .taqrir-image-box.bottom-image img {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 210px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin-inline: auto !important;
}

.area-bottom-right .magazine-title-only {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  border-top: 0 !important;
  text-align: center !important;
  font-size: clamp(.88rem, .9vw, 1.08rem) !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.area-bottom-right .magazine-title-only a {
  color: inherit !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .area-bottom-right .magazine-cover-box img,
  .area-bottom-right .taqrir-image-box.bottom-image img {
    width: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .area-bottom-right .magazine-title-only {
    font-size: clamp(1.05rem, 4vw, 1.35rem) !important;
    line-height: 1.55 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}


/* Final Persian title/body contrast + magazine cover sizing */
html[lang="fa"] .taqrir-section-title {
  font-weight: 950 !important;
  font-size: clamp(1.05rem, 1.12vw, 1.45rem) !important;
  line-height: 1.55 !important;
  letter-spacing: -.015em !important;
}

html[lang="fa"] .taqrir-item-title,
html[lang="fa"] .magazine-title-only {
  font-weight: 950 !important;
  font-size: clamp(.92rem, .92vw, 1.13rem) !important;
  line-height: 1.65 !important;
  letter-spacing: -.012em !important;
}

html[lang="fa"] .taqrir-main-title {
  font-weight: 950 !important;
  letter-spacing: -.025em !important;
}

html[lang="fa"] .taqrir-main-summary,
html[lang="fa"] .taqrir-main-summary p,
html[lang="fa"] .taqrir-item-summary,
html[lang="fa"] .taqrir-bottom-text {
  font-weight: 400 !important;
  font-size: clamp(.78rem, .78vw, .94rem) !important;
  line-height: 1.95 !important;
}

html[lang="fa"] .side-card .taqrir-item-summary {
  font-size: clamp(.72rem, .72vw, .88rem) !important;
  line-height: 1.9 !important;
}

html[lang="fa"] .taqrir-readmore {
  font-weight: 600 !important;
  font-size: clamp(.72rem, .72vw, .86rem) !important;
}

/* Desktop magazine: complete cover, smaller image, title visible underneath */
@media (min-width: 901px) {
  .area-bottom-right .magazine-cover-box,
  .area-bottom-right .taqrir-image-box.bottom-image {
    margin: 6px auto 8px !important;
    padding: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .area-bottom-right .magazine-cover-box img,
  .area-bottom-right .taqrir-image-box.bottom-image img {
    width: auto !important;
    max-width: 86% !important;
    height: auto !important;
    max-height: 132px !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin-inline: auto !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .area-bottom-right .magazine-title-only {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    margin: 6px 0 0 !important;
    padding: 0 4px !important;
    font-size: clamp(.78rem, .78vw, .96rem) !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }
}

/* Mobile keeps the magazine readable and complete */
@media (max-width: 900px) {
  .area-bottom-right .magazine-cover-box img,
  .area-bottom-right .taqrir-image-box.bottom-image img {
    max-width: 90% !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  html[lang="fa"] .taqrir-section-title {
    font-size: clamp(1.28rem, 5vw, 1.75rem) !important;
  }

  html[lang="fa"] .taqrir-item-title,
  html[lang="fa"] .magazine-title-only {
    font-size: clamp(1.08rem, 4.2vw, 1.42rem) !important;
    line-height: 1.65 !important;
  }

  html[lang="fa"] .taqrir-main-summary,
  html[lang="fa"] .taqrir-main-summary p,
  html[lang="fa"] .taqrir-item-summary,
  html[lang="fa"] .taqrir-bottom-text {
    font-size: clamp(.98rem, 3.8vw, 1.22rem) !important;
    line-height: 2.05 !important;
  }
}


/* Arabic footer labels */
html[lang="ar"] .footer-item strong,
html[lang="ar"] .footer-item span {
  direction: rtl;
  text-align: center;
}


/* Footer 3-column + Arabic left-column title fix */
.footer-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.footer-item {
  min-width: 0 !important;
}

html[lang="ar"] .footer-item strong,
html[lang="ar"] .footer-item span {
  direction: rtl;
  text-align: center;
}

/* Arabic side column section titles must not be clipped on desktop */
@media (min-width: 901px) {
  html[lang="ar"] .side-card .taqrir-section-title {
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-align: center !important;
    font-size: clamp(.88rem, .88vw, 1.12rem) !important;
    line-height: 1.45 !important;
    padding-inline: 2px !important;
  }

  html[lang="ar"] .side-card .taqrir-section-title::before,
  html[lang="ar"] .side-card .taqrir-section-title::after {
    margin-inline: .18em !important;
  }
}

/* Keep mobile section titles readable */
@media (max-width: 900px) {
  html[lang="ar"] .side-card .taqrir-section-title {
    white-space: normal !important;
    overflow: visible !important;
    text-align: center !important;
    font-size: clamp(1.2rem, 4.8vw, 1.65rem) !important;
    line-height: 1.55 !important;
  }
}


/* Footer hover/select underline */
.footer-item {
  position: relative !important;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}

.footer-item::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: center;
  transition: opacity .18s ease, transform .18s ease;
}

.footer-item:hover::after,
.footer-item:focus-within::after {
  opacity: .55;
  transform: scaleX(1);
}

.footer-item:hover,
.footer-item:focus-within {
  color: var(--taqrir-ink, #24170f);
  transform: translateY(-1px);
}

.footer-item a {
  text-decoration: none !important;
}

.footer-item:hover a,
.footer-item:focus-within a {
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .footer-item::after {
    left: 26%;
    right: 26%;
    bottom: 6px;
  }
}


/* Monitoring list hover/select underline */
.area-bottom-center .taqrir-bottom-list a {
  position: relative !important;
  display: inline !important;
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color .18s ease;
}

.area-bottom-center .taqrir-bottom-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: center;
  transition: opacity .18s ease, transform .18s ease;
}

.area-bottom-center .taqrir-bottom-list a:hover::after,
.area-bottom-center .taqrir-bottom-list a:focus-visible::after {
  opacity: .65;
  transform: scaleX(1);
}

.area-bottom-center .taqrir-bottom-list a:hover,
.area-bottom-center .taqrir-bottom-list a:focus-visible {
  color: var(--taqrir-ink, #24170f) !important;
}

html[lang="ar"] .area-bottom-center .taqrir-bottom-list a::after,
html[dir="rtl"] .area-bottom-center .taqrir-bottom-list a::after {
  transform-origin: center;
}

@media (max-width: 900px) {
  .area-bottom-center .taqrir-bottom-list a::after {
    bottom: -4px;
    height: 2px;
  }
}


/* ===== v3 issue-strip fix: date left, topic centered, full topic visible ===== */
.issue-strip {
  grid-template-areas: "date ornament-left topic ornament-right number" !important;
  grid-template-columns: minmax(150px, 1fr) 30px minmax(0, 2.9fr) 30px minmax(150px, 1fr) !important;
  gap: 4px !important;
  padding: 8px 14px !important;
  align-items: center !important;
  overflow: visible !important;
}
.issue-strip > * {
  min-width: 0 !important;
  max-width: 100% !important;
  text-align: center !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.issue-strip .issue-item-number {
  grid-area: number !important;
  white-space: nowrap !important;
  font-size: clamp(.95rem, 1.55vw, 1.55rem) !important;
}
.issue-strip .issue-item-topic {
  grid-area: topic !important;
  white-space: normal !important;
  line-height: 1.28 !important;
  padding-inline: 8px !important;
  font-size: clamp(.92rem, 1.4vw, 1.45rem) !important;
}
.issue-strip .issue-item-date {
  grid-area: date !important;
  white-space: nowrap !important;
  font-size: clamp(.95rem, 1.45vw, 1.42rem) !important;
}
.issue-strip .strip-ornament-right { grid-area: ornament-right !important; }
.issue-strip .strip-ornament-left { grid-area: ornament-left !important; }
.issue-strip .strip-ornament {
  font-size: clamp(.8rem, 1.1vw, 1.2rem) !important;
  overflow: visible !important;
}

html[lang="ar"] .issue-strip,
html[lang="fa"] .issue-strip {
  grid-template-areas: "date ornament-left topic ornament-right number" !important;
  grid-template-columns: minmax(138px, .95fr) 26px minmax(0, 3.2fr) 26px minmax(118px, .9fr) !important;
}

html[lang="ar"] .issue-strip .issue-item-topic,
html[lang="fa"] .issue-strip .issue-item-topic {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

@media (max-width: 820px) {
  .issue-strip,
  html[lang="ar"] .issue-strip,
  html[lang="fa"] .issue-strip {
    grid-template-columns: minmax(92px, .9fr) 20px minmax(0, 2.8fr) 20px minmax(92px, .9fr) !important;
    padding: 7px 10px !important;
  }
  .issue-strip .issue-item-topic {
    font-size: clamp(.82rem, 2.2vw, 1rem) !important;
  }
  .issue-strip .issue-item-number,
  .issue-strip .issue-item-date {
    font-size: clamp(.78rem, 2.1vw, .98rem) !important;
  }
}

@media (max-width: 520px) {
  .issue-strip,
  html[lang="ar"] .issue-strip,
  html[lang="fa"] .issue-strip {
    grid-template-columns: minmax(76px, .82fr) 14px minmax(0, 2.45fr) 14px minmax(76px, .82fr) !important;
    gap: 2px !important;
    padding: 6px 8px !important;
  }
  .issue-strip .issue-item-topic {
    font-size: clamp(.72rem, 2.8vw, .92rem) !important;
    line-height: 1.22 !important;
  }
  .issue-strip .issue-item-number,
  .issue-strip .issue-item-date,
  .issue-strip .strip-ornament {
    font-size: clamp(.68rem, 2.5vw, .86rem) !important;
  }
}


/* ===== v7: faithful and clearly visible Word formatting in details ===== */
.details-body-text.word-rich-content,
.details-body-text.word-rich-content .word-paragraph,
.details-body-text.word-rich-content .word-quote,
.details-body-text.word-rich-content .word-heading {
  /* متن عادی باید واقعاً عادی باشد تا Bold ورد تفاوت آشکاری داشته باشد. */
  font-weight: 500 !important;
}

.details-body-text.word-rich-content strong,
.details-body-text.word-rich-content b {
  font-weight: 900 !important;
  color: inherit;
}

.details-body-text.word-rich-content em,
.details-body-text.word-rich-content i {
  font-style: italic !important;
}

.details-body-text.word-rich-content u {
  text-decoration-line: underline !important;
  text-decoration-thickness: 1.35px !important;
  text-underline-offset: .14em !important;
  text-decoration-skip-ink: auto;
}

.details-body-text.word-rich-content s,
.details-body-text.word-rich-content strike {
  text-decoration-line: line-through !important;
  text-decoration-thickness: 1.2px !important;
}

.details-body-text.word-rich-content sup,
.details-body-text.word-rich-content sub {
  font-size: .72em !important;
  line-height: 0 !important;
  position: relative;
}

.details-body-text.word-rich-content sup { top: -.45em; }
.details-body-text.word-rich-content sub { bottom: -.18em; }

.details-body-text.word-rich-content span[style*="background-color"] {
  padding: .02em .12em;
  border-radius: .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.details-body-text.word-rich-content .word-heading {
  margin: 1.45rem 0 .65rem !important;
  font-weight: 900 !important;
  line-height: 1.75 !important;
  text-indent: 0 !important;
}

.details-body-text.word-rich-content .word-quote {
  margin: 1rem 1.2rem !important;
  padding: .65rem 1rem !important;
  border-inline-start: 3px solid rgba(139, 98, 44, .72);
  background: rgba(139, 98, 44, .06);
  text-indent: 0 !important;
}

.details-body-text.word-rich-content .word-list-item {
  position: relative;
  padding-inline-start: 1.35em;
  text-indent: 0 !important;
}

.details-body-text.word-rich-content .word-list-bullet::before {
  content: "◆";
  position: absolute;
  inset-inline-start: .15em;
  font-size: .52em;
  top: .72em;
}

.details-body-text.word-rich-content .word-list-number {
  counter-increment: word-list;
}

/* جلوگیری از خنثی شدن رنگ و اندازه موضعی Word توسط استایل‌های عمومی سایت */
.details-body-text.word-rich-content span[style] {
  font-weight: inherit;
}

html[lang="fa"] .details-body-text.word-rich-content,
html[lang="fa"] .details-body-text.word-rich-content .word-paragraph,
html[lang="ar"] .details-body-text.word-rich-content,
html[lang="ar"] .details-body-text.word-rich-content .word-paragraph {
  font-weight: 500 !important;
}

@media print {
  .details-body-text.word-rich-content,
  .details-body-text.word-rich-content .word-paragraph {
    font-weight: 500 !important;
  }
  .details-body-text.word-rich-content strong,
  .details-body-text.word-rich-content b {
    font-weight: 900 !important;
  }
}
