/* لایهٔ نهایی بازنگری روند. توکن‌های برند اینجا تعریف می‌شوند. */

:root {
  --color-primary: #F06161;
  --color-secondary: #1E6C82;
  --color-primary-ink: #B83338;     /* نسخهٔ متنی روی زمینهٔ روشن؛ ۵٫۳ به ۱ روی کاغذ */
  --color-primary-deep: #A92F33;
  --color-secondary-deep: #15505F;
  --color-secondary-soft: #DCEAEE;
  --color-on-primary: #191919;      /* ۵٫۵ به ۱ روی رنگ اصلی؛ سفید فقط ۳٫۲ به ۱ است */
  --color-on-secondary: #FFFFFF;
  --color-paper: #f5f3ef;
  --color-ink: #191919;
  --color-ink-soft: #55524d;
  --color-line: #dddad2;
  --color-line-dark: rgba(245, 243, 239, 0.2);
  --color-active: var(--color-primary);
  --color-disabled: #a9a59d;
  --accent: var(--color-primary-ink);
  --accent-deep: var(--color-primary-deep);
  --accent-soft: var(--color-secondary-soft);
  --gold: var(--color-secondary);
  --gold-soft: var(--color-ink-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

body .solid-btn,
body .btn-premium-action {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

/* ---------- هیرو ---------- */

body .film-slogan span {
  display: block;
}

body .film-slogan {
  line-height: 1.55;
  white-space: normal !important;
}

@media (max-width: 900px) {
  body .film-slogan {
    font-size: 1rem;
  }
}

/* ---------- منوی چسبان صفحهٔ اول ---------- */

.bar-brand,
.bar-toggle {
  display: none;
}

body .masthead.masthead-film .masthead-bar.is-stuck {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 3.5rem;
  padding: 0.25rem clamp(1rem, 3vw, 2.5rem);
  background: var(--color-ink);
  border-bottom: 2px solid var(--color-primary);
}

body .masthead.masthead-film .masthead-bar.is-stuck .bar-brand {
  display: block;
  flex: 0 0 auto;
}

body .masthead.masthead-film .masthead-bar.is-stuck .bar-brand img {
  display: block;
  width: 2.9rem;
  height: auto;
}

body .masthead.masthead-film .masthead-bar.is-stuck .nav > a,
body .masthead.masthead-film .masthead-bar.is-stuck .nav-fold-btn {
  font-size: 0.98rem;
}

body .masthead.masthead-film .nav > a:hover .nav-label::after,
body .masthead.masthead-film .nav > a.is-active .nav-label::after {
  background: var(--color-primary);
}

@media (max-width: 900px) {
  body .masthead.masthead-film .masthead-bar.is-stuck {
    justify-content: space-between;
    min-height: 3.25rem;
  }

  body .masthead.masthead-film .masthead-bar.is-stuck .bar-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--color-paper);
    background: transparent;
    border: 1px solid rgba(245, 243, 239, 0.5);
  }

  body .masthead.masthead-film .masthead-bar.is-stuck .nav {
    display: none;
  }

  body .masthead.masthead-film.menu-open .masthead-bar.is-stuck .nav {
    display: flex;
    position: fixed;
    top: 3.4rem;
    right: 0;
    left: 0;
    max-height: calc(100svh - 3.4rem);
    overflow-y: auto;
    flex-direction: column;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--color-paper);
  }
}

/* ---------- سربرگ سبک صفحه‌های داخلی ---------- */

body .masthead.masthead-compact {
  --strip-h: 3.1rem;
  position: sticky;
  top: calc(-1 * var(--strip-h));
  z-index: 50;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: var(--color-paper);
  border: 0;
  color: var(--color-ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body .masthead-compact .mc-strip {
  height: var(--strip-h);
  border-bottom: 1px solid var(--color-line);
}

body .masthead-compact .mc-strip-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 100%;
  gap: 1rem;
}

body .masthead-compact .masthead-date {
  grid-area: auto;
  justify-self: start;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

body .masthead-compact .film-marks {
  grid-area: auto;
  display: flex;
  align-items: center;
}

body .masthead-compact .bismillah {
  display: block;
  width: 7.5rem;
  height: auto;
  max-width: none;
  order: 0;
}

body .masthead-compact .leaders {
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  width: 3.1rem;
  height: auto;
  max-width: none;
  transform: translateY(-50%);
}

body .masthead-compact .masthead-actions {
  grid-area: auto;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: auto;
  margin-left: 4rem;
}

body .masthead-compact .masthead-actions #search-open,
body .masthead-compact .masthead-actions .circle-btn {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

body .masthead.masthead-compact .masthead-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.6rem;
  padding-block: 0.25rem;
  background: none;
  border: 0;
}

body .masthead-compact .brand {
  display: block;
  flex: 0 0 auto;
  width: auto;
  padding: 0;
  order: 0;
}

body .masthead-compact .brand .logo {
  display: block;
  width: 3.1rem;
  height: auto;
  max-width: none;
}

body .masthead.masthead-compact .nav {
  flex: 1;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

body .masthead.masthead-compact .nav-toggle {
  display: none;
}

html:has(.masthead-compact) body::before {
  content: none;
}

body:has(.masthead-compact) {
  border-top: 0;
}

html:has(.masthead-compact)::after {
  content: none;
}

body .masthead.masthead-compact::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--color-primary);
}

@media (max-width: 900px) {
  body .masthead.masthead-compact {
    --strip-h: 2.9rem;
  }

  body .masthead-compact .masthead-date,
  body .masthead-compact .circle-btn {
    display: none;
  }

  body .masthead-compact .mc-strip-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body .masthead-compact .film-marks {
    justify-content: flex-start;
  }

  body .masthead-compact .bismillah {
    width: 6.2rem;
  }

  body .masthead-compact .leaders {
    top: 0.5rem;
    width: 2.8rem;
    transform: none;
  }

  body .masthead-compact .masthead-actions {
    margin-left: 3.5rem;
  }

  body .masthead.masthead-compact .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    background: transparent;
    border: 1px solid var(--color-line);
    color: var(--color-ink);
  }

  body .masthead.masthead-compact .nav {
    display: none;
  }

  body .masthead.masthead-compact.menu-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    max-height: calc(100svh - 3.8rem);
    overflow-y: auto;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--color-paper);
    border-bottom: 2px solid var(--color-primary);
  }
}

/* ---------- متادیتا ---------- */

.meta .m-date,
.meta .m-read {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta .m-date::before,
.meta .m-read::before {
  content: "";
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.meta .m-date {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='15' rx='1.5'/%3E%3Cpath d='M4 10h16M8.5 3v5M15.5 3v5'/%3E%3C/svg%3E");
}

.meta .m-read {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v5.5l3.5 2'/%3E%3C/svg%3E");
}

/* ---------- کنترل مشترک اسلایدرها ---------- */

.rs-controls,
.orbit-rs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rs-btn {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.rs-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rs-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.rs-toggle i {
  display: block;
  width: 0.7rem;
  height: 0.8rem;
  border-inline: 3px solid currentColor;
}

.rs-toggle.is-stopped i {
  width: 0;
  height: 0;
  border-inline: 0;
  border-block: 0.45rem solid transparent;
  border-inline-start: 0.7rem solid currentColor;
}

.rs-dots {
  display: flex;
  align-items: center;
  gap: 0;
}

.rs-dot {
  position: relative;
  width: 1.5rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
}

.rs-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.2rem;
  left: 0.2rem;
  height: 2px;
  background: currentColor;
  opacity: 0.32;
  transform: translateY(-50%);
  transition: opacity 180ms ease, height 180ms ease, background-color 180ms ease;
}

.rs-dot:hover::before {
  opacity: 0.7;
}

.rs-dot.is-on::before {
  height: 4px;
  background: var(--color-primary);
  opacity: 1;
}

.rs-controls {
  min-width: 0;
}

.rs-dots {
  min-width: 0;
  flex-shrink: 1;
}

.rs-dot {
  flex: 0 1 1.5rem;
  min-width: 0.7rem;
}

section[id],
.rv-desks,
.creative-orbit {
  scroll-margin-top: 4rem;
}

.rs-count {
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.rs-progress {
  flex: 1;
  height: 2px;
  background: color-mix(in srgb, currentColor 22%, transparent);
  overflow: hidden;
}

.rs-progress span {
  display: block;
  height: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms ease;
}

/* ---------- مدار خلاقیت ---------- */

.creative-orbit .orbit-head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.creative-orbit .orbit-plate {
  position: relative;
  isolation: isolate;
}

.creative-orbit .orbit-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.creative-orbit .pf {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  will-change: transform;
  animation: pf-drift 46s ease-in-out infinite alternate;
}

.creative-orbit .pf-2 {
  animation-duration: 33s;
  animation-direction: alternate-reverse;
}

.creative-orbit .pf-3 {
  animation-duration: 24s;
  opacity: 0.9;
}

@keyframes pf-drift {
  from { transform: translate3d(-1.6%, 1.2%, 0); }
  50% { transform: translate3d(1.1%, -1.5%, 0); }
  to { transform: translate3d(2%, 1.4%, 0); }
}

.creative-orbit .orbit-flow .flow {
  stroke-linecap: round;
  animation: flow-run 70s linear infinite;
}

.creative-orbit .flow-a {
  stroke: var(--color-primary);
  stroke-width: 1.5;
  stroke-dasharray: 34 300;
  opacity: 0.85;
}

.creative-orbit .flow-b {
  stroke: #5fb3c9;
  stroke-width: 1.3;
  stroke-dasharray: 26 210;
  opacity: 0.85;
  animation-duration: 42s;
  animation-direction: reverse;
}

@keyframes flow-run {
  to { stroke-dashoffset: -1340; }
}

.creative-orbit .sat {
  fill: var(--color-paper);
  offset-rotate: 0deg;
  animation: sat-run 90s linear infinite;
}

.creative-orbit .sat:nth-child(2n) {
  fill: var(--color-primary);
}

.creative-orbit .sat:nth-child(3n) {
  fill: #5fb3c9;
}

@keyframes sat-run {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

.creative-orbit .core-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: core-rot 80s linear infinite;
}

.creative-orbit .core-spin.spin-b {
  animation-duration: 120s;
  animation-direction: reverse;
  stroke: #5fb3c9;
}

@keyframes core-rot {
  to { transform: rotate(360deg); }
}

.creative-orbit.is-idle *,
.creative-orbit.is-idle *::before {
  animation-play-state: paused !important;
}

.creative-orbit .orbit-node[aria-checked="true"]::before {
  box-shadow: 0 0 0 6px rgba(240, 97, 97, 0.18);
}

.creative-orbit .orbit-node[aria-checked="true"] .orbit-glyph i {
  border-color: var(--color-ink);
  background: var(--color-ink);
}

.creative-orbit .orbit-slides {
  display: grid;
  touch-action: pan-y;
}

.creative-orbit .orbit-slide {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-18px);
  transition: opacity 300ms ease, transform 300ms ease, visibility 0s linear 300ms;
}

.creative-orbit .orbit-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.creative-orbit .orbit-slide.is-before {
  transform: translateX(18px);
}

.creative-orbit .orbit-figure {
  display: block;
}

.creative-orbit .orbit-typeplate {
  background: var(--color-secondary);
}

.creative-orbit .orbit-story-title a {
  color: inherit;
  text-decoration: none;
}

.creative-orbit .orbit-story-title a:hover {
  color: var(--color-primary);
}

.creative-orbit .orbit-read {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-primary);
  color: var(--color-paper);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.creative-orbit .orbit-read:hover {
  color: var(--color-primary);
}

.creative-orbit .orbit-rs {
  margin-top: 16px;
  color: var(--color-paper);
}

.creative-orbit .orbit-rs .rs-dots {
  flex: 1;
}

.creative-orbit .orbit-pin.is-on {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 1100px) {
  .creative-orbit .orbit-pin {
    width: 14px;
    height: 14px;
  }

  .creative-orbit .orbit-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.75rem;
  }

  .creative-orbit .orbit-name {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .creative-orbit .orbit-rs {
    gap: 0.35rem;
  }

  .creative-orbit .rs-dot {
    width: 1.2rem;
  }
}

/* ---------- سرخط ---------- */

html[lang="fa"] body[data-page="home"] .news-train {
  background: var(--color-ink);
  border-top: 2px solid var(--color-primary);
  border-bottom: 1px solid rgba(245, 243, 239, 0.18);
}

html[lang="fa"] body[data-page="home"] .news-train .news-train-label {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--color-ink);
}

html[lang="fa"] body[data-page="home"] .news-train .news-train-item,
html[lang="fa"] body[data-page="home"] .news-train .news-train-item span {
  color: var(--color-paper);
}

html[lang="fa"] body[data-page="home"] .news-train .news-train-item .news-train-src {
  color: #5fb3c9;
}

/* ---------- میزها ---------- */

.rv-desks {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  overflow: hidden;
  background: var(--color-paper);
  color: var(--color-ink);
}

.rv-head h2 {
  margin: 0 0 1.5rem;
  font-size: var(--type-section);
  font-weight: 700;
}

.desks-viewport {
  overflow: visible;
  touch-action: pan-y;
}

.desks-track {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  width: max-content;
  transition: transform 460ms cubic-bezier(0.22, 0.7, 0.2, 1);
}

.desk-slide {
  flex: 0 0 auto;
  width: min(62vw, 54rem);
  opacity: 0.42;
  transform: scale(0.94);
  transition: opacity 340ms ease, transform 420ms ease;
}

.desk-slide.is-active {
  opacity: 1;
  transform: none;
}

.desk-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: var(--color-ink);
  border: 0;
  cursor: zoom-in;
}

.desk-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.desk-slide.is-active .desk-visual:hover img {
  transform: scale(1.03);
}

.desk-plate {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--color-secondary);
  color: var(--color-paper);
}

.desk-plate b {
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 800;
}

.desk-copy {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-top: 1rem;
}

.desk-name {
  grid-row: span 2;
  color: var(--color-primary-ink);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.desk-copy h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
}

.desk-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.desk-copy p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.rv-desks .rs-controls {
  margin-top: 1rem;
  justify-content: center;
}

.desk-slide:not(.is-active) .desk-copy {
  visibility: hidden;
}

.rv-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--color-paper);
}

.rv-lightbox::backdrop {
  background: rgba(15, 15, 15, 0.93);
}

html:has(.rv-lightbox[open]) {
  overflow: hidden;
}

.lb-frame {
  position: absolute;
  inset: clamp(0.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 1.5rem;
  background: var(--color-ink);
}

.lb-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  background: #101010;
}

.lb-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lb-plate {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--color-secondary);
}

.lb-plate b {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
}

.lb-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  padding: 3.75rem 0 1.25rem 1.5rem;
  overflow-y: auto;
}

.lb-desk {
  margin: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.lb-info h3 {
  margin: 0;
  color: var(--color-paper);
  font-size: 1.5rem;
  line-height: 1.5;
}

.lb-deck {
  margin: 0;
  color: rgba(245, 243, 239, 0.8);
  line-height: 1.8;
}

.lb-when {
  margin: 0;
  color: rgba(245, 243, 239, 0.6);
  font-size: 0.9rem;
}

.lb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.lb-links a {
  color: var(--color-paper);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary);
}

.lb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
}

.lb-close {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--color-primary);
  border: 0;
  color: var(--color-on-primary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .desk-slide {
    width: 84vw;
  }

  .desk-copy {
    grid-template-columns: 1fr;
  }

  .desk-name {
    grid-row: auto;
    font-size: 1rem;
  }

  .lb-frame {
    inset: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 45% minmax(0, 1fr);
    gap: 0;
  }

  .lb-info {
    padding: 1rem;
  }
}

/* ---------- اخبار استان‌ها ---------- */

html[lang="fa"] body[data-page="home"] .section.atlas .atlas-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
  grid-template-areas:
    "map title"
    "map news";
  grid-template-rows: auto 1fr;
  gap: 0.75rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

html[lang="fa"] body[data-page="home"] .section.atlas .atlas-title {
  grid-area: title;
  margin: 0;
  color: var(--color-paper);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 800;
  text-align: start;
}

html[lang="fa"] body[data-page="home"] .section.atlas .atlas-stage {
  grid-area: map;
  max-width: 40rem;
}

.atlas .atlas-map a.is-news path {
  fill: var(--color-primary) !important;
  stroke: var(--color-ink);
}

.pn {
  grid-area: news;
  min-width: 0;
  padding: 1.5rem;
  background: var(--color-secondary);
  color: var(--color-on-secondary);
}

.pn-track {
  display: grid;
  min-height: 19rem;
  touch-action: pan-y;
}

.pn-slide {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}

.pn-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms ease;
}

.pn-province {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
  text-decoration: none;
}

.pn-slide h3 {
  margin: 0.85rem 0 0.5rem;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.5;
}

.pn-slide h3 a {
  color: inherit;
  text-decoration: none;
}

.pn-slide h3 a:hover {
  text-decoration: underline;
}

.pn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
}

.pn-dek {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
}

.pn-more {
  color: inherit;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.pn .rs-controls {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  html[lang="fa"] body[data-page="home"] .section.atlas .atlas-spread {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "map" "news";
  }

  .pn-track {
    min-height: 21rem;
  }
}

/* ---------- پیشخوان داده ---------- */

html[lang="fa"] body[data-page="home"] .section.metrics {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  background: var(--color-ink);
  color: var(--color-paper);
  border: 0;
}

.dd-board h2 {
  margin: 0;
  color: var(--color-paper);
  font-size: var(--type-section);
  font-weight: 700;
}

.dd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-line-dark);
}

.dd-updated {
  margin: 0.3rem 0 0;
  color: rgba(245, 243, 239, 0.65);
  font-size: 0.88rem;
}

.dd-tabs,
.dd-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dd-tabs button,
.dd-pick button {
  min-height: 2.5rem;
  padding: 0.25rem 0.85rem;
  background: transparent;
  border: 1px solid var(--color-line-dark);
  color: var(--color-paper);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.dd-tabs button[aria-pressed="true"],
.dd-pick button[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
}

.dd-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1px;
  margin-top: 1.25rem;
}

.dd-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem;
  background: var(--color-ink);
  color: var(--color-paper);
  outline: 1px solid var(--color-line-dark);
  text-decoration: none;
  transition: background-color 160ms ease;
}

.dd-kpi[hidden],
.dd-fresh li[hidden] {
  display: none;
}

.dd-kpi:hover {
  background: #242424;
}

.dd-kpi.is-lead {
  grid-column: span 2;
  background: var(--color-secondary);
}

.dd-kpi.is-lead:hover {
  background: var(--color-secondary-deep);
}

.dd-kpi-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.dd-kpi-top b {
  color: var(--color-primary);
  font-weight: 700;
}

.dd-kpi.is-lead .dd-kpi-top b {
  color: var(--color-paper);
}

.dd-kpi-top i {
  font-style: normal;
  color: rgba(245, 243, 239, 0.65);
}

.dd-kpi-title {
  font-size: 1rem;
  line-height: 1.55;
}

.dd-kpi-num {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: auto;
}

.dd-kpi-num b {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
}

.dd-kpi.is-lead .dd-kpi-num b {
  font-size: clamp(3rem, 5.2vw, 4.6rem);
}

.dd-kpi-num small {
  font-size: 0.95rem;
}

.dd-delta {
  align-self: flex-start;
  font-size: 0.86rem;
  font-weight: 700;
}

.dd-delta i {
  font-style: normal;
  margin-inline-end: 0.25rem;
}

.dd-kpi-foot {
  display: grid;
  gap: 0.1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-line-dark);
  color: rgba(245, 243, 239, 0.72);
  font-size: 0.8rem;
  line-height: 1.6;
}

.dd-kpi.is-lead .dd-kpi-foot {
  color: rgba(255, 255, 255, 0.9);
  border-top-color: rgba(255, 255, 255, 0.35);
}

.dd-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.dd-board.no-chart .dd-lower {
  grid-template-columns: 1fr;
}

.dd-chart-panel {
  min-width: 0;
}

.dd-chart {
  margin-top: 0.75rem;
}

.dd-chart-head h4 {
  margin: 0;
  color: var(--color-paper);
  font-size: 1.2rem;
  line-height: 1.5;
}

.dd-chart-head p {
  margin: 0.15rem 0 0;
  color: rgba(245, 243, 239, 0.65);
  font-size: 0.86rem;
}

.dd-plot {
  position: relative;
}

.dd-svg {
  display: block;
  width: 100%;
  height: auto;
  direction: ltr;
}

.dd-grid {
  stroke: rgba(245, 243, 239, 0.12);
}

.dd-axis {
  stroke: rgba(245, 243, 239, 0.5);
}

.dd-label,
.dd-value {
  direction: rtl;
  unicode-bidi: plaintext;
}

.dd-tick,
.dd-label,
.dd-value {
  font-family: inherit;
  fill: rgba(245, 243, 239, 0.72);
  font-size: 12px;
}

.dd-value {
  fill: var(--color-paper);
  font-weight: 700;
}

.dd-bar {
  fill: var(--color-secondary);
}

.dd-bar.is-last {
  fill: var(--color-primary);
}

.dd-line {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.4;
}

.dd-dot {
  fill: var(--color-primary);
  stroke: var(--color-ink);
  stroke-width: 2;
}

.dd-mark {
  cursor: default;
  outline: none;
}

.dd-mark:focus-visible .dd-bar,
.dd-mark:focus-visible .dd-dot,
.dd-mark:hover .dd-bar,
.dd-mark:hover .dd-dot {
  stroke: var(--color-paper);
  stroke-width: 1.5;
}

.dd-tip {
  position: absolute;
  z-index: 2;
  display: grid;
  padding: 0.3rem 0.6rem;
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 0.85rem;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 1.6rem));
}

.dd-tip[hidden] {
  display: none;
}

.dd-source {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0.5rem 0 0;
  color: rgba(245, 243, 239, 0.72);
  font-size: 0.84rem;
}

.dd-source a,
.dd-paths a {
  color: var(--color-paper);
  border-bottom: 1px solid var(--color-primary);
  text-decoration: none;
}

.dd-empty {
  margin: 0;
  padding: 2rem 0;
  color: rgba(245, 243, 239, 0.72);
}

.dd-fresh h3 {
  margin: 0 0 0.5rem;
  color: var(--color-paper);
  font-size: 1.15rem;
}

.dd-fresh ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dd-fresh li a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 0.6rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-top: 1px solid var(--color-line-dark);
  color: var(--color-paper);
  text-decoration: none;
}

.dd-fresh li b {
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 800;
}

.dd-fresh-unit {
  font-size: 0.85rem;
}

.dd-fresh-title {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.dd-fresh small {
  grid-column: 1 / -1;
  color: rgba(245, 243, 239, 0.65);
  font-size: 0.8rem;
}

.dd-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-line-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

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

  .dd-kpi.is-lead {
    grid-column: auto;
  }

  .dd-tabs,
  .dd-pick {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.25rem;
  }

  .dd-tabs button,
  .dd-pick button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* ---------- گفت‌وگو ---------- */

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  overflow: hidden;
  background: var(--color-secondary);
  color: var(--color-paper);
  border: 0;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  background: var(--color-primary);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .wrap {
  position: relative;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .section-head {
  border: 0;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .section-head h2 {
  color: var(--color-ink);
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .section-head a {
  color: var(--color-paper);
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-slide.is-active {
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  background: none;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-copy {
  padding: 0;
  background: none;
  color: var(--color-paper);
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--color-paper);
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.5;
  text-wrap: balance;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-original {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  text-align: left;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-by {
  display: grid;
  gap: 0.1rem;
  margin: 1.25rem 0 0;
  color: var(--color-paper);
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-by b {
  font-size: 1.25rem;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-by span,
html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-when {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-when {
  margin: 0.25rem 0 0.9rem;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-more {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--color-ink);
  color: var(--color-paper);
  font-weight: 700;
  text-decoration: none;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 32rem;
  overflow: hidden;
  background: var(--color-ink);
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-figure img.talk-photo {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 22%;
  filter: none;
  transform: none;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talks-bar {
  color: var(--color-paper);
  border-color: rgba(255, 255, 255, 0.35);
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talks-btn {
  border-color: var(--color-paper);
  color: var(--color-paper);
  background: transparent;
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talks-dot {
  background: rgba(255, 255, 255, 0.45);
}

html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talks-dot.is-active {
  background: var(--color-ink);
}

@media (max-width: 760px) {
  html[lang="fa"] body[data-page="home"] .section.talks.rv-talks::before {
    width: 100%;
    inset: 0 0 auto 0;
    height: 24rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 72%);
  }

  html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-slide.is-active {
    grid-template-columns: 1fr;
  }

  html[lang="fa"] body[data-page="home"] .section.talks.rv-talks .talk-figure {
    order: -1;
    aspect-ratio: 4 / 4;
  }
}

/* ---------- دیوار مفاخر ---------- */

.wall .portrait {
  transition: opacity 0.42s ease, filter 0.3s ease;
}

.wall-title {
  margin: 0;
}

/* ---------- تحلیل و داده‌نگاری ---------- */

.rv-show {
  position: relative;
  height: clamp(32rem, 86vh, 50rem);
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-paper);
}

.show-track {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
}

.show-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 0s linear 420ms;
}

.show-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease;
}

.show-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.show-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(25, 25, 25, 0.86) 0%, rgba(25, 25, 25, 0.62) 42%, rgba(25, 25, 25, 0.08) 72%),
    linear-gradient(to top, rgba(25, 25, 25, 0.88) 0%, rgba(25, 25, 25, 0) 34%),
    linear-gradient(to bottom, rgba(25, 25, 25, 0.62) 0%, rgba(25, 25, 25, 0) 22%);
}

.show-copy {
  position: absolute;
  inset: auto 0 5.6rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.show-copy > * {
  max-width: 44rem;
}

.show-kicker {
  margin: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.show-copy h3 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.32;
  text-wrap: balance;
}

.show-copy h3 a {
  color: var(--color-paper);
  text-decoration: none;
}

.show-lede {
  margin: 0;
  color: rgba(245, 243, 239, 0.9);
  font-size: 1.08rem;
  line-height: 1.8;
}

.show-meta {
  display: flex;
  gap: 1rem;
  margin: 0;
  color: rgba(245, 243, 239, 0.78);
  font-size: 0.88rem;
}

.show-more {
  padding: 0.5rem 1.2rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
  text-decoration: none;
}

.show-head {
  position: absolute;
  inset: 1.5rem 0 auto 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.show-head h2 {
  margin: 0;
  color: var(--color-paper);
  font-size: var(--type-section);
  font-weight: 700;
}

.show-head a {
  color: var(--color-paper);
  border-bottom: 1px solid var(--color-primary);
  text-decoration: none;
}

.show-controls {
  position: absolute;
  inset: auto 0 1.1rem 0;
}

@media (max-width: 760px) {
  .rv-show {
    height: 40rem;
    max-height: 92svh;
  }

  .show-scrim {
    background:
      linear-gradient(to top, rgba(25, 25, 25, 0.95) 0%, rgba(25, 25, 25, 0.78) 48%, rgba(25, 25, 25, 0.1) 78%),
      linear-gradient(to bottom, rgba(25, 25, 25, 0.62) 0%, rgba(25, 25, 25, 0) 18%);
  }

  .show-lede {
    font-size: 1rem;
    line-height: 1.7;
  }

  .show-copy {
    bottom: 4.6rem;
  }
}

/* ---------- نشان روند ---------- */

.rv-neshan {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  background: var(--color-paper);
  color: var(--color-ink);
}

.nsh-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nsh-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 800;
}

.nsh-head a {
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.nsh-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: stretch;
}

.nsh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-ink);
  color: var(--color-paper);
}

.nsh-card.nsh-season {
  background: var(--color-secondary-deep);
}

.nsh-photo {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.nsh-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nsh-medal {
  position: relative;
  z-index: 1;
  align-self: center;
  width: clamp(9.5rem, 15vw, 12.5rem);
  margin-top: clamp(-5.5rem, -6vw, -4rem);
  text-align: center;
}

.nsh-year .nsh-medal {
  width: clamp(11rem, 19vw, 15.5rem);
}

.nsh-medal svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.nsh-medal p {
  position: absolute;
  inset: 37% 0 auto;
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  transform: translateY(-50%);
}

.nsh-season .nsh-medal p {
  color: var(--color-paper);
}

.nsh-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem 1.25rem;
}

.nsh-body h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
}

.nsh-year .nsh-body h3 {
  font-size: 1.45rem;
}

.nsh-body h3 a {
  color: inherit;
  text-decoration: none;
}

.nsh-reason {
  margin: 0;
  color: rgba(245, 243, 239, 0.84);
  font-size: 0.95rem;
  line-height: 1.8;
}

.nsh-body dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: auto 0 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-line-dark);
  font-size: 0.86rem;
}

.nsh-body dt {
  color: rgba(245, 243, 239, 0.65);
}

.nsh-body dd {
  margin: 0;
  font-weight: 600;
}

.nsh-more {
  align-self: flex-start;
  color: var(--color-paper);
  border-bottom: 1px solid var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.nsh-archive {
  display: grid;
  gap: 1rem;
  padding-bottom: 3.5rem;
}

.nsh-row {
  display: grid;
  grid-template-columns: 7rem 13rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--color-line);
}

.nsh-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.nsh-row-name {
  margin: 0;
  color: var(--color-primary-ink);
  font-weight: 700;
}

.nsh-row h2 {
  margin: 0.2rem 0;
  font-size: 1.3rem;
}

.nsh-row h2 a {
  color: inherit;
  text-decoration: none;
}

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

  .nsh-row {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .nsh-row > img {
    display: none;
  }
}

/* ---------- رویدادها ---------- */

.ev-board {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.ev-card {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--color-paper);
  color: var(--color-ink);
}

.ev-board:has(.ev-card:nth-child(4)) .ev-card.is-lead {
  grid-row: span 2;
}

.ev-card.is-lead {
  flex-direction: column;
  background: var(--color-secondary);
  color: var(--color-on-secondary);
}

.ev-mark {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 4.6rem;
}

.ev-card.is-lead .ev-mark {
  flex-direction: row-reverse;
  justify-content: space-between;
  width: 100%;
}

.ev-mark svg {
  width: 1.9rem;
  height: 1.9rem;
  fill: none;
  stroke: var(--color-primary-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ev-card.is-lead .ev-mark svg {
  width: 3.4rem;
  height: 3.4rem;
  stroke: var(--color-paper);
}

.ev-date {
  display: grid;
  justify-items: center;
  margin: 0;
  line-height: 1.1;
}

.ev-date b {
  font-size: 2.2rem;
  font-weight: 800;
}

.ev-card.is-lead .ev-date b {
  font-size: 4.4rem;
}

.ev-date span {
  font-size: 0.95rem;
  font-weight: 600;
}

.ev-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.ev-kind {
  margin: 0;
  color: var(--color-primary-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.ev-card.is-lead .ev-kind {
  color: var(--color-paper);
}

.ev-body h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.ev-card.is-lead .ev-body h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.ev-body h3 a {
  color: inherit;
  text-decoration: none;
}

.ev-body h3 a:hover {
  text-decoration: underline;
}

.ev-deadline {
  align-self: flex-start;
  margin: 0;
  padding: 0.1rem 0.55rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.ev-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.ev-facts b {
  margin-inline-end: 0.3rem;
}

.ev-src {
  margin: auto 0 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

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

  .ev-board:has(.ev-card:nth-child(4)) .ev-card.is-lead {
    grid-row: auto;
  }
}

/* ---------- فرم حلقه ---------- */

html[lang="fa"] body[data-page="home"] .circle-pricing-card .pricing-header h3 {
  color: var(--color-ink);
}

html[lang="fa"] body[data-page="home"] .circle-promo-section .circle-promo-container {
  align-items: center;
}

/* ---------- قالب گزارش ---------- */

.tpl-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  background: var(--color-ink);
  color: var(--color-paper);
}

.tpl-cover-img {
  order: 2;
  margin: 0;
}

.tpl-cover-img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.tpl-cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem;
  width: auto;
  max-width: none;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.tpl-cover .headline {
  margin: 0.4rem 0;
  color: var(--color-paper);
  font-size: clamp(1.9rem, 3.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}

.tpl-cover .lede,
.tpl-cover .meta,
.tpl-cover .crumb,
.tpl-cover .crumb a {
  color: rgba(245, 243, 239, 0.9);
}

.tpl-cover .kicker {
  color: var(--color-primary);
}

.tpl-cover .article-tools button {
  color: var(--color-paper);
  border-color: rgba(245, 243, 239, 0.5);
  background: transparent;
}

/* ---------- قالب تحلیل ---------- */

.tpl-idea {
  background: var(--color-secondary-soft);
  border-bottom: 3px solid var(--color-secondary);
}

.tpl-idea-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.tpl-idea .headline {
  margin: 0.4rem 0;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.4;
  text-wrap: balance;
}

.tpl-idea .kicker {
  color: var(--color-secondary-deep);
}

.tpl-idea .key-figures {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.tpl-idea .key-figure {
  display: grid;
  padding: 0.75rem 0;
  background: none;
  border: 0;
  border-top: 1px solid rgba(30, 108, 130, 0.4);
  text-align: start;
}

.tpl-idea .key-figure:first-child {
  border-top: 0;
}

.tpl-idea .key-figure b {
  color: var(--color-secondary-deep);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
}

.tpl-idea .key-figure:first-child b {
  color: var(--color-primary-ink);
  font-size: clamp(2.4rem, 4.4vw, 4rem);
}

.tpl-idea-lead .figure {
  margin: 0;
}

@media (max-width: 760px) {
  .tpl-cover,
  .tpl-idea-grid {
    grid-template-columns: 1fr;
  }

  .tpl-cover-img {
    order: -1;
  }
}

.tpl-caption {
  margin: 0.75rem 0 1.5rem;
  color: var(--color-ink-soft);
  font-size: 0.86rem;
}

body[data-tpl="report"] .article-body {
  font-size: 1.14rem;
  line-height: 2;
}

/* ---------- قالب گفت‌وگو ---------- */

.tpl-portrait {
  background: var(--color-secondary);
  color: var(--color-on-secondary);
}

.tpl-portrait-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 26rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.tpl-portrait-img {
  margin: 0;
}

.tpl-portrait-img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}

.tpl-portrait-img figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

.tpl-portrait .kicker {
  color: var(--color-paper);
}

.tpl-portrait .headline {
  margin: 0.4rem 0;
  color: var(--color-paper);
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}

.tpl-who {
  display: grid;
  margin: 0.5rem 0;
}

.tpl-who b {
  font-size: 1.3rem;
}

.tpl-portrait blockquote {
  margin: 1rem 0;
  padding: 0 1rem 0 0;
  border: 0;
  border-right: 4px solid var(--color-primary);
  color: var(--color-paper);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.7;
}

.tpl-portrait .lede,
.tpl-portrait .meta {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 760px) {
  .tpl-portrait-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- قالب خبر و جهان‌نما ---------- */

body[data-tpl="news"] .headline {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.4;
  text-wrap: balance;
}

body[data-tpl="world"] .article-body {
  border-top: 4px solid var(--color-secondary);
  padding-top: 1rem;
}

body[data-tpl="world"] .kicker {
  color: var(--color-secondary);
}

/* ---------- آرشیو و دسته ---------- */

body[data-tpl="archive"] .page-hero {
  padding-block: clamp(1.5rem, 4vw, 3rem);
  border-bottom: 2px solid var(--color-primary);
}

body[data-tpl="archive"] .page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
}

body[data-tpl="archive"] .archive-row:first-child {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  padding-block: 1.5rem;
  align-items: center;
}

body[data-tpl="archive"] .archive-row:first-child img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

body[data-tpl="archive"] .archive-row:first-child h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.45;
}

@media (max-width: 760px) {
  body[data-tpl="archive"] .archive-row:first-child {
    grid-template-columns: 1fr;
  }
}

/* ---------- تقویم رویداد ---------- */

body[data-tpl="events"] .page-hero {
  padding-block: clamp(1.5rem, 4vw, 3rem);
  border-bottom: 3px solid var(--color-secondary);
}

body[data-tpl="events"] .page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 800;
}

body[data-tpl="events"] .event-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-line);
}

body[data-tpl="events"] .event-date {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 0.75rem 0.25rem;
  background: var(--color-secondary);
  color: var(--color-on-secondary);
}

body[data-tpl="events"] .event-date b {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
}

body[data-tpl="events"] .event-row h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.5;
}

body[data-tpl="events"] .ev-facts span {
  display: inline-block;
  margin-inline-end: 1rem;
}

body[data-tpl="events"] .ev-facts .ev-deadline {
  padding: 0.1rem 0.55rem;
}

@media (max-width: 560px) {
  body[data-tpl="events"] .event-row {
    grid-template-columns: 4.6rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  body[data-tpl="events"] .event-date b {
    font-size: 1.9rem;
  }
}

/* ---------- گاهنامه ---------- */

.mg-lead,
.mg-hero {
  background: var(--color-ink);
  color: var(--color-paper);
}

.mg-lead-grid,
.mg-hero-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 24rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.mg-lead-cover img,
.mg-hero-cover img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.mg-lead h1 {
  margin: 0 0 1.25rem;
  color: var(--color-primary);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
}

.mg-lead h2,
.mg-hero h1 {
  margin: 0.25rem 0 0.5rem;
  color: var(--color-paper);
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}

.mg-lead h2 a {
  color: inherit;
  text-decoration: none;
}

.mg-no {
  margin: 0;
  color: var(--color-primary-ink);
  font-weight: 700;
}

.mg-lead .mg-no,
.mg-hero .mg-no {
  color: var(--color-primary);
}

.mg-period {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  opacity: 0.85;
}

.mg-sum {
  margin: 0.4rem 0 1rem;
  line-height: 1.85;
}

.mg-free {
  padding: 0.1rem 0.55rem;
  background: var(--color-secondary);
  color: var(--color-on-secondary);
  font-size: 0.85rem;
  font-weight: 700;
}

.mg-foot,
.mg-meta,
.mg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  margin: 0;
}

.mg-foot a,
.mg-actions a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary);
}

.mg-foot .mg-go,
.mg-actions .mg-go {
  padding: 0.55rem 1.4rem;
  background: var(--color-primary);
  border: 0;
  color: var(--color-on-primary);
}

.mg-meta {
  margin-top: 1rem;
}

.mg-shelf {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.mg-shelf > h2 {
  margin: 0 0 1.5rem;
  font-size: var(--type-section);
  font-weight: 800;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
}

.mg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 2.25rem 1.75rem;
}

.mg-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mg-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 1.25rem;
  background: var(--color-line);
}

.mg-cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 10px 22px rgba(25, 25, 25, 0.28);
}

.mg-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.5;
}

.mg-card h3 a {
  color: inherit;
  text-decoration: none;
}

.mg-card .mg-sum {
  margin: 0 0 0.4rem;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mg-card .mg-foot {
  margin-top: auto;
  justify-content: space-between;
}

.mg-toc {
  padding-block: clamp(2rem, 4vw, 3rem);
  max-width: 60rem;
}

.mg-toc h2 {
  margin: 0 0 1rem;
  font-size: var(--type-section);
  font-weight: 800;
}

.mg-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-toc li {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-line);
}

.mg-sec {
  grid-column: 1;
  color: var(--color-primary-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.mg-title {
  grid-column: 2;
  display: grid;
  gap: 0.1rem;
}

.mg-title a {
  color: var(--color-ink);
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
}

.mg-title a:hover {
  color: var(--color-primary-ink);
}

.mg-title small {
  color: var(--color-ink-soft);
  font-size: 0.86rem;
}

.mg-page {
  grid-column: 3;
  color: var(--color-secondary);
  font-weight: 700;
  text-decoration: none;
}

.mg-reader {
  background: #2a2a2a;
  padding-bottom: 2rem;
}

.ir-bar {
  position: sticky;
  top: 3.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: var(--color-ink);
  color: var(--color-paper);
}

.ir-bar input {
  width: 4.2rem;
  height: 2.4rem;
  margin-inline-start: 0.35rem;
  padding: 0 0.3rem;
  background: var(--color-paper);
  border: 0;
  color: var(--color-ink);
  font: inherit;
  text-align: center;
}

.ir-pages {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-width: 62rem;
  margin: 1rem auto 0;
  padding-inline: 0.5rem;
}

.ir-page {
  width: 100%;
  margin: 0;
  scroll-margin-top: 7.5rem;
}

.ir-page img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-paper);
}

.mg-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  padding-block: 2rem;
}

.mg-adj {
  display: grid;
  flex: 1 1 14rem;
  gap: 0.15rem;
  padding: 1rem;
  background: var(--color-secondary-soft);
  color: var(--color-ink);
  text-decoration: none;
}

.mg-adj small {
  color: var(--color-secondary);
  font-weight: 700;
}

@media (max-width: 760px) {
  .mg-lead-grid,
  .mg-hero-grid {
    grid-template-columns: 1fr;
  }

  .mg-lead-cover,
  .mg-hero-cover {
    max-width: 16rem;
    margin-inline: auto;
  }

  .mg-toc li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.15rem 0.75rem;
  }

  .mg-sec {
    grid-column: 1 / -1;
  }

  .mg-title {
    grid-column: 1;
  }

  .mg-page {
    grid-column: 2;
  }

  .ir-bar {
    top: 3.4rem;
  }

  .ir-pages {
    padding-inline: 0;
  }
}

/* ---------- کاهش حرکت ---------- */

@media (prefers-reduced-motion: reduce) {
  .creative-orbit .pf,
  .creative-orbit .flow,
  .creative-orbit .sat,
  .creative-orbit .core-spin {
    animation: none !important;
  }

  .creative-orbit .sat {
    display: none;
  }

  .desks-track,
  .desk-slide,
  .show-slide,
  .pn-slide,
  .creative-orbit .orbit-slide,
  .rs-progress span {
    transition: none !important;
  }
}

html,
body {
  overflow-x: clip;
}
