/* base and root settings */
:root {
  --bg: #f7f2ea;
  --surface: #fffcf7;
  --ink: #0d1117;
  --ink2: #2a2f3a;
  --muted: #6b6860;
  --muted2: #9a9590;
  --orange: #ff5c00;
  --orange2: #ff7a2e;
  --orange-pale: #fff1e8;
  --orange-dim: rgba(255, 92, 0, .1);
  --navy: #111c2e;
  --navy2: #1c2d46;
  --green: #0f8a5f;
  --line: rgba(17, 24, 39, .09);
  --line2: rgba(17, 24, 39, .16);
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --font: 'anjoman';
  --font2: 'anjoman-titr';
  --cont: min(1280px, calc(100% - 56px));
  --body-w: 720px;
}

@font-face {
  font-family: 'anjoman';
  src: url(../font/Anjoman-Medium.woff);
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: 'anjoman-titr';
  src: url(../font/Anjoman-Black.ttf);
  font-style: normal;
  font-weight: 100;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  background-image: radial-gradient(ellipse 60% 38% at 94% 0%, rgba(255, 92, 0, .09), transparent 52%),
    radial-gradient(ellipse 44% 44% at 4% 10%, rgba(17, 28, 46, .05), transparent 48%)
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E")
}

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

button,
input,
textarea {
  font-family: var(--font)
}

img {
  max-width: 100%;
  display: block
}

.c {
  width: var(--cont);
  margin: 0 auto
}

/* ══ NAV ══ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  font-family:var(--font2);
  align-items: center;
  background: rgba(247, 242, 234, .82);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  transition: height .3s, background .3s, box-shadow .3s
}

.nav.s {
  height: 66px;
  background: rgba(247, 242, 234, .96);
  box-shadow: 0 10px 36px rgba(17, 24, 39, .07)
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative
}

.brand {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  line-height: 1.2
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(255, 92, 0, .24);
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.brand-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.4px
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted)
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none
}

.nav-links a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 13px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  transition: color .2s, background .2s
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
  background: rgba(255, 92, 0, .08)
}

.nav-r {
  display: flex;
  align-items: center;
  gap: 9px
}

.nav-search-btn,
.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .65);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink2);
  transition: transform .2s, border-color .2s, background .2s;
  flex-shrink: 0
}

.nav-search-btn:hover,
.menu-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 92, 0, .4);
  background: var(--orange-pale)
}

.nav-search-btn.open {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff
}

.ncta {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 99px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: background .2s, transform .2s
}

.ncta:hover {
  background: var(--orange);
  transform: translateY(-2px)
}

.menu-btn {
  display: none;
  border-radius: 12px
}

.nav-mobile-link {
  display: none !important
}

/* search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 88px;
  background: rgba(17, 24, 39, .52);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all
}

.search-box {
  width: min(680px, calc(100% - 40px));
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--line2);
  box-shadow: 0 32px 80px rgba(17, 24, 39, .2);
  overflow: hidden;
  transform: translateY(-12px) scale(.97);
  transition: transform .3s cubic-bezier(.22, .68, 0, 1.2)
}

.search-overlay.open .search-box {
  transform: none
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line)
}

.search-input-row svg {
  flex-shrink: 0;
  color: var(--orange)
}

.search-input-row input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink)
}

.search-close {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .8);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  transition: background .2s, color .2s
}

.search-close:hover {
  background: var(--orange-pale);
  color: var(--orange)
}

.search-hints {
  padding: 16px 22px 20px
}

.search-hints-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .3px;
  margin-bottom: 12px
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.stag {
  height: 32px;
  padding: 0 13px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .8);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink2);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s
}

.stag:hover {
  border-color: rgba(255, 92, 0, .3);
  color: var(--orange);
  background: var(--orange-pale)
}

.search-results { border-top: 1px solid var(--line); }
.sr-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line); transition: background .15s; }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: var(--orange-pale); }
.sr-item-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.sr-item-intro { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sr-item-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.sr-cat { font-size: 11px; font-weight: 700; color: var(--orange); background: var(--orange-pale); padding: 2px 8px; border-radius: 99px; }
.sr-time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.sr-loading, .sr-empty { padding: 18px 22px; font-size: 13px; color: var(--muted); text-align: center; }

/* read progress */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 3px
}

.read-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  border-radius: 0 99px 99px 0;
  transition: width .1s linear
}

/* breadcrumb */
.page-reader {
  padding: 20px 0 0
}

.reader-box {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 0 2px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800
}

.reader-box::-webkit-scrollbar {
  display: none
}

.reader-box a {
  color: var(--muted);
  flex-shrink: 0;
  transition: color .2s
}

.reader-box a:hover {
  color: var(--orange)
}

.reader-sep {
  opacity: .42;
  flex-shrink: 0
}

.reader-current {
  color: var(--ink2);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1
}

/* ══ ARTICLE HEAD — کادر بزرگ شیشه‌ای ══ */
.article-head {
  margin: 22px auto 0;
  padding: clamp(32px, 4vw, 56px);
  max-width: 900px;
  border-radius: 38px;
  border: 1px solid rgba(17, 24, 39, .10);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .65) 0%, rgba(255, 252, 247, .88) 100%),
    radial-gradient(circle at 94% 12%, rgba(255, 92, 0, .10), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(17, 28, 46, .06), transparent 32%);
  box-shadow: 0 20px 52px rgba(17, 24, 39, .08), 0 1px 0 rgba(255, 255, 255, .9) inset;
  backdrop-filter: blur(20px);
}

.article-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url(../img/Rhino\ Pattern\ 5.png);
  background-size: cover;
  opacity: 0.2;

}

.article-head::after {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 0, .09), transparent 62%);
  pointer-events: none
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--orange-pale);
  border: 1px solid rgba(255, 92, 0, .18);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0
}

.article-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px
}

.article-title {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -1.4px;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 18px
}

.article-lead {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--muted);
  line-height: 1.9;
  font-weight: 500;
  margin-bottom: 28px;
  border-right: 3px solid var(--orange);
  background: rgba(255, 92, 0, .04);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px 14px 12px
}

.byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0 0;
  border-top: 1px solid var(--line)
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 12px
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0
}

.author-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink2)
}

.author-role {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted)
}

.meta-chip svg {
  flex-shrink: 0;
  color: var(--muted)
}

.meta-sep {
  width: 1px;
  height: 16px;
  background: var(--line2)
}

/* hero image */
.hero-wrap {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto
}

.hero-img {
  margin: 32px auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  box-shadow: 0 18px 55px rgba(17, 24, 39, .10)
}

.hero-img-inner {
  height: 100%;
  position: relative;
  overflow: hidden
}

.hero-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
}

.hero-caption {
  position: absolute;
  right: 20px;
  left: 20px;
  bottom: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px);
  color: #fff
}

.hero-caption small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, .68);
  margin-bottom: 4px
}

.hero-caption span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55
}

/* ══ PAGE BODY ══ */
.page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  width: var(--cont);
  margin: 0 auto;
  padding: 40px 0 80px
}

/* prose */
.prose {
  max-width: var(--body-w);
  font-size: 17px;
  line-height: 2;
  color: var(--ink2);
  font-weight: 500
}

.prose h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.5px;
  line-height: 1.3;
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line)
}

.prose h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.3px;
  line-height: 1.35;
  margin: 36px 0 14px
}

.prose p {
  margin-bottom: 22px
}

.prose strong {
  font-weight: 800;
  color: var(--ink)
}

.prose em {
  font-style: normal;
  color: var(--orange);
  font-weight: 700
}

.prose ul,
.prose ol {
  padding-right: 24px;
  margin-bottom: 22px;
  display: grid;
  gap: 9px
}

.prose li {
  color: var(--ink2);
  padding-right: 6px
}

.prose ul li {
  list-style: none;
  position: relative;
  padding-right: 18px
}

.prose ul li::before {
  content: "";
  position: absolute;
  right: 0;
  top: .75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  opacity: .75
}

.prose ol {
  list-style: none;
  counter-reset: item
}

.prose ol li {
  counter-increment: item;
  position: relative;
  padding-right: 28px
}

.prose ol li::before {
  content: counter(item);
  position: absolute;
  right: 0;
  top: .1em;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--orange-pale);
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1
}

.callout {
  margin: 32px 0;
  padding: 22px 24px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 92, 0, .22);
  background: var(--orange-pale);
  display: flex;
  gap: 14px
}

.callout-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.3
}

.callout-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 6px
}

.callout-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  line-height: 1.85
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0
}

.stat-block {
  padding: 20px;
  border-radius: var(--r-md);
  background: rgba(255, 252, 247, .9);
  border: 1px solid var(--line);
  text-align: center
}

.stat-block strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 7px
}

.stat-block span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.6
}

.key-box {
  margin: 36px 0;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: rgba(255, 252, 247, .9);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px)
}

.key-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px
}

.key-box-title::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), transparent)
}

.key-list {
  display: grid;
  gap: 10px
}

.key-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink2);
  line-height: 1.75
}

.key-num {
  min-width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px
}

blockquote {
  margin: 32px 0;
  padding: 22px 24px;
  border-radius: var(--r-md);
  border-right: 4px solid var(--orange);
  background: rgba(255, 241, 232, .5);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.75
}

blockquote cite {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-top: 10px
}

.art-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line2), transparent);
  margin: 40px 0
}

/* tags */
.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: var(--body-w)
}

.art-tags-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  display: flex;
  align-items: center;
  margin-left: 4px
}

.tag {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink2);
  transition: background .2s, border-color .2s, color .2s
}

.tag:hover {
  border-color: rgba(255, 92, 0, .3);
  color: var(--orange);
  background: var(--orange-pale)
}

/* author */
.author-card {
  margin-top: 44px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: rgba(255, 252, 247, .9);
  border: 1px solid var(--line);
  max-width: var(--body-w)
}

.author-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.author-avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.author-card h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 3px
}

.author-card small {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted)
}

.author-card p,
.author-bio {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  line-height: 1.85;
  margin: 14px 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.author-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--orange)
}

/* ══ RELATED ══ */
.related {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 2px solid var(--line);
  max-width: var(--body-w)
}

.rel-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.4px;
  margin-bottom: 22px
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.rel-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 252, 247, .88);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(17, 24, 39, .05);
  transition: transform .25s cubic-bezier(.22, .68, 0, 1.2), box-shadow .25s, border-color .25s
}

.rel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(17, 24, 39, .09);
  border-color: rgba(255, 92, 0, .28)
}

.rel-cover {
  height: 160px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden
}

.rel-cover-inner {
  width: 100%;
  height: 100%;
  transition: transform .45s cubic-bezier(.22, .68, 0, 1.2)
}

.rel-card:hover .rel-cover-inner {
  transform: scale(1.06)
}

.cov-a {
  background: radial-gradient(circle at 78% 22%, rgba(255, 92, 0, .4), transparent 34%), linear-gradient(135deg, #fff3ea, #ffdfc8)
}

.cov-b {
  background: radial-gradient(circle at 26% 26%, rgba(17, 28, 46, .18), transparent 32%), linear-gradient(135deg, #edf2ff, #e4ecf9)
}

.cov-c {
  background: radial-gradient(circle at 74% 24%, rgba(15, 138, 95, .3), transparent 30%), linear-gradient(135deg, #ecfbf4, #dbf6ea)
}

.rel-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1
}

.rel-body .pill {
  width: fit-content;
  margin-bottom: 10px
}

.rel-body h3 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.62;
  color: var(--navy);
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.rel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line)
}

.rel-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted)
}

.rel-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(255, 92, 0, .22);
  transition: background .2s, transform .2s, box-shadow .2s
}

.rel-read-btn:hover {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 92, 0, .3)
}

/* ══ SIDEBAR ══ */
.sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 18px
}

.read-stat {
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: rgba(17, 28, 46, .97);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  gap: 14px
}

.ring-wrap {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px
}

.ring-wrap svg {
  transform: rotate(-90deg)
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, .1);
  stroke-width: 4
}

.ring-fill {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  transition: stroke-dashoffset .3s linear
}

.ring-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff
}

.read-stat-body strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px
}

.read-stat-body span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55)
}

.toc {
  padding: 22px;
  border-radius: var(--r-lg);
  background: rgba(255, 252, 247, .9);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(17, 24, 39, .07), inset 0 1px 0 rgba(255, 255, 255, .7)
}

.toc-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px
}

.toc-title::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), transparent)
}

.toc-list {
  display: grid;
  gap: 6px;
  list-style: none;
  max-height: 360px;
  overflow-y: auto;
  padding-left: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 92, 0, .32) transparent
}

.toc-list::-webkit-scrollbar {
  width: 4px
}

.toc-list::-webkit-scrollbar-thumb {
  background: rgba(255, 92, 0, .32);
  border-radius: 99px
}

.toc-item a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.5;
  transition: background .2s, color .2s
}

.toc-item a:hover,
.toc-item a.active {
  background: var(--orange-dim);
  color: var(--orange)
}

.toc-item a span {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 900;
  color: var(--orange);
  opacity: .6;
  margin-top: 2px
}

.toc-item.h3 a {
  padding-right: 20px;
  font-size: 12px
}

/* ══ FOOTER ══ */
.footer {
  background: var(--navy);
  padding: 44px 0 0;
  font-family:var(--font2);
}

.footer-in {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.footer-brand .brand-name {
  color: #fff
}

.footer-brand .brand-sub {
  color: rgba(255, 255, 255, .52)
}

.footer-desc {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .52);
  line-height: 1.8;
  max-width: 320px;
  margin-top: 6px
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center
}

.footer-address {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .52);
  line-height: 1.8
}

.footer-socials {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center
}

.fsoc {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .8);
  transition: background .2s, transform .2s, border-color .2s
}

.fsoc:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-3px)
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px
}

.footer-links-col a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .52);
  transition: color .2s
}

.footer-links-col a:hover {
  color: #fff
}

.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap
}

.footer-bottom span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .36)
}

/* reveal */
.rev {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease
}

.rev.on {
  opacity: 1;
  transform: none
}

.d1 {
  transition-delay: .07s
}

.d2 {
  transition-delay: .14s
}

/* ══ RESPONSIVE ══ */
/* desktop: grid طبیعی، sidebar چسبیده به محتوا */
@media(min-width:1101px) {
  .page-body {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
  }

  .prose {
    max-width: var(--body-w)
  }

  .art-tags {
    max-width: var(--body-w)
  }

  .author-card {
    max-width: var(--body-w)
  }

  .related {
    max-width: none
  }

  .rel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px
  }

  .rel-card {
    min-height: 300px;
    border-radius: 28px
  }

  .rel-cover {
    height: 160px
  }
}

/* تبلت */
@media(max-width:1100px) and (min-width:721px) {
  .sidebar {
    display: none !important
  }

  .page-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 28px
  }

  .prose,
  .art-tags,
  .author-card,
  .related {
    max-width: var(--body-w);
    margin-inline: auto;
    width: 100%
  }

  .related {
    max-width: calc(var(--body-w) + 0px)
  }

  .rel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px
  }
}

/* موبایل */
@media(max-width:720px) {
  .sidebar {
    display: none !important
  }

  .page-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 28px
  }

  .prose,
  .art-tags,
  .author-card,
  .related {
    max-width: 100%;
    margin-inline: auto;
    width: 100%
  }
}

@media(max-width:900px) {
  .nav-links {
    display: none
  }

  .menu-btn {
    display: grid
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(247, 242, 234, .97);
    box-shadow: 0 20px 50px rgba(17, 24, 39, .1);
    z-index: 200
  }

  .nav-links.open a {
    justify-content: center;
    border-radius: 11px
  }

  .nav-mobile-link {
    display: flex !important
  }

  .ncta {
    display: none
  }
}

@media(max-width:720px) {
  :root {
    --cont: min(100% - 28px, 1280px)
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 19px
  }

  .brand-sub {
    display: none
  }

  .article-title {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .article-lead {
    font-size: 15px;
    padding: 12px 14px 12px 10px
  }

  .article-head {
    border-radius: 26px;
    padding: 22px 18px
  }

  .hero-img {
    border-radius: 28px;
    margin: 24px auto
  }

  .hero-img-inner {
    height: 280px
  }

  .prose {
    font-size: 15.5px;
    line-height: 1.95
  }

  .stat-row {
    grid-template-columns: 1fr 1fr
  }

  .rel-grid {
    grid-template-columns: 1fr
  }

  /* footer section */

  .footer-in {
    flex-direction: column;
    align-items: center;
    text-align: center
  }

  .footer-brand {
    justify-content: center;
    text-align: right;
  }

  .footer-desc,
  .footer-address {
    text-align: center
  }

  .footer-links-col,
  .footer-socials {
    align-items: center;
    justify-content: center
  }

  .footer-bottom {
    justify-content: center;
    text-align: center
  }
}

@media(max-width:480px) {
  .article-title {
    font-size: 27px
  }

  .article-head {
    max-width: 100%;
    padding: 18px 16px
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start
  }

  .meta-sep {
    display: none
  }

  .hero-img-inner {
    height: 230px
  }

  .stat-row {
    grid-template-columns: 1fr
  }

  .callout {
    padding: 18px
  }

  .key-box {
    padding: 20px
  }

  .footer-bottom {
    flex-direction: column
  }
}








