/* ============================================================
   Iran–Israel Peace Studies Institute
   Light Editorial Stylesheet — Brookings/CFR style
   ============================================================ */

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--c-ink);
  color: #fff;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0;
}

.topbar__meta {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
}

.lang-switch {
  display: flex;
  gap: 0;
  align-items: center;
}

.lang-switch button {
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-weight: var(--fw-semibold);
  border-inline-end: 1px solid rgba(255,255,255,0.15);
  transition: color var(--t-fast), background var(--t-fast);
}
.lang-switch button:last-child { border-inline-end: none; }
.lang-switch button:hover { color: #fff; background: rgba(255,255,255,0.05); }
.lang-switch button.active { color: #fff; background: var(--c-isr-blue); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  position: relative;
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-5) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
}

.brand__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  line-height: 1.2;
  color: var(--c-ink);
  letter-spacing: -0.005em;
  margin: 0;
}

:root[lang="en"] .brand__title {
  font-variation-settings: "opsz" 36, "SOFT" 30, "wght" 600;
  font-size: 1.05rem;
}

:root[lang="fa"] .brand__title,
:root[lang="he"] .brand__title { letter-spacing: 0; font-size: 0.95rem; }

.brand__title br { display: none; }

.brand__tagline {
  font-size: 11px;
  color: var(--c-ink-mute);
  letter-spacing: 0.04em;
  margin: 0;
  font-weight: var(--fw-regular);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-6);
  grid-column: 2;
}

.nav a {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  color: var(--c-ink-soft);
  padding: var(--s-2) 0;
  position: relative;
  transition: color var(--t-fast);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: var(--c-iran-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-normal);
}

.nav a:hover { color: var(--c-iran-red); }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--c-ink); }

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
}

/* ============================================================
   FLAG ACCENT BAR
   ============================================================ */
.accent-bar {
  display: flex;
  flex-direction: column;
}
.accent-bar > span {
  display: block;
  width: 100%;
  height: 3px;
}
.accent-bar__green { background: var(--c-iran-green); }
.accent-bar__white { background: #ffffff; border-block: 1px solid var(--c-line); }
.accent-bar__red   { background: var(--c-iran-red); }
.accent-bar__blue  { background: var(--c-isr-blue); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--c-bg);
  padding: var(--s-12) 0 var(--s-16);
  border-bottom: 1px solid var(--c-line);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--c-iran-red);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--c-iran-red);
  margin-bottom: var(--s-6);
}

.hero__title {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: var(--fw-bold);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  max-width: 100%;
  margin: 0 auto var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  align-items: center;
  text-align: center;
}

:root[lang="en"] .hero__title,
:root[lang="he"] .hero__title {
  align-items: center;
  text-align: center;
}

:root[lang="en"] .hero__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 30, "wght" 700;
}

/* Two-line slogan: same size, divider line cycles color */
.hero__title .slogan-top {
  font-size: 1em;
  font-weight: var(--fw-bold);
  color: var(--c-ink);
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(6px);
  animation: slogan-fade-in 1.1s ease-out 0.2s forwards;
}

.hero__title .slogan-divider {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 3px;
  border: 0;
  margin: 0 auto;
  background: var(--c-iran-green);
  opacity: 0;
  transform-origin: center;
  transform: scaleX(0);
  animation:
    slogan-divider-grow 1.2s ease-out 0.6s forwards,
    slogan-divider-color-cycle 12s ease-in-out 2s infinite;
}

.hero__title .slogan-bottom {
  font-size: 1em;
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
  position: relative;
  color: var(--c-ink);
  opacity: 0;
  transform: translateY(8px);
  animation: slogan-fade-in 1s ease-out 1.1s forwards;
}

@keyframes slogan-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slogan-divider-grow {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes slogan-divider-color-cycle {
  0%, 100% { background: var(--c-iran-green); }
  20%      { background: var(--c-iran-green); }
  25%, 45% { background: #d4d0c4; }
  50%, 70% { background: var(--c-iran-red); }
  75%, 95% { background: var(--c-isr-blue); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title .slogan-top,
  .hero__title .slogan-divider,
  .hero__title .slogan-bottom {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero__title .slogan-bottom {
    color: var(--c-ink);
  }
}

/* Keep legacy <em> usage harmless if it ever appears */
.hero__title em {
  font-style: normal;
}

.hero__lead {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: var(--c-ink-soft);
  max-width: 680px;
  margin: 0 0 var(--s-8);
}

.hero__actions {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--c-isr-blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--c-accent-hover);
}

.btn--ghost {
  border-color: #d19900;
  color: var(--c-ink);
  background: #ffc553;
}
.btn--ghost:hover {
  border-color: #b88600;
  background: #ffb733;
}

.btn--red {
  background: var(--c-iran-red);
  color: #fff;
}
.btn--red:hover { background: #9a1a25; }

.btn--text {
  padding: 0;
  background: none;
  color: var(--c-isr-blue);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-bottom: 2px;
  font-weight: var(--fw-semibold);
}
.btn--text:hover { color: var(--c-iran-red); }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.section {
  padding: var(--s-16) 0;
  border-bottom: 1px solid var(--c-line);
}

.section--tight { padding: var(--s-10) 0; }
.section--ivory { background: var(--c-bg-2); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
  border-bottom: 1px solid var(--c-line-2);
  padding-bottom: var(--s-3);
}

.section__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--c-iran-red);
  margin-bottom: var(--s-2);
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  margin: 0;
}

.section__lead {
  font-size: var(--text-sm);
  color: var(--c-ink-soft);
  max-width: 560px;
  margin: var(--s-3) 0 0;
  line-height: var(--lh-relaxed);
}

.section__link {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  color: var(--c-isr-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  white-space: nowrap;
}
.section__link:hover { color: var(--c-iran-red); }

/* ============================================================
   FEATURED ARTICLE
   ============================================================ */
.featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.featured__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1f3a5a 0%, #143055 50%, #0d1b2a 100%);
  overflow: hidden;
}

.featured__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(46,111,184,0.35), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(184,32,45,0.25), transparent 55%);
}

.featured__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.featured__media-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: var(--s-8);
}

.featured__media-inner img {
  max-width: 55%;
  max-height: 55%;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.featured__body {
  padding: var(--s-8) var(--s-8) var(--s-8) var(--s-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--c-iran-red);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-4);
  align-self: flex-start;
}

.featured__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  margin: 0 0 var(--s-4);
  color: var(--c-ink);
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .featured__title { font-size: var(--text-2xl); }
}

.featured__title a { color: inherit; transition: color var(--t-fast); }
.featured__title a:hover { color: var(--c-iran-red); }

.featured__lead {
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--c-ink-soft);
  margin: 0 0 var(--s-5);
}

.featured__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 10px;
  color: var(--c-ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  font-weight: var(--fw-semibold);
}

.featured__meta-divider {
  width: 3px;
  height: 3px;
  background: var(--c-ink-light);
  border-radius: 50%;
}

/* ============================================================
   ARTICLE GRID
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  padding: var(--s-6) var(--s-6) var(--s-5);
  text-decoration: none;
  color: inherit;
  transition: background var(--t-normal);
  border-top: 3px solid transparent;
}

.article-card:hover {
  background: var(--c-bg-2);
  border-top-color: var(--c-iran-red);
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 10px;
  color: var(--c-iran-red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
  font-weight: var(--fw-bold);
}

.article-card__meta > span:not(.article-card__tag) {
  color: var(--c-ink-mute);
  font-weight: var(--fw-regular);
}

.article-card__tag { color: var(--c-iran-red); }

.article-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--c-ink);
  margin: 0 0 var(--s-2);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

:root[lang="en"] .article-card h3 {
  font-variation-settings: "opsz" 48, "SOFT" 30, "wght" 600;
}

.article-card p {
  font-size: var(--text-sm);
  color: var(--c-ink-soft);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--s-4);
  flex-grow: 1;
}

.article-card__cta {
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-isr-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: auto;
}

.article-card .arrow-icon { transition: transform var(--t-fast); }
.article-card:hover .arrow-icon { transform: translateX(3px); }
:root[dir="rtl"] .article-card .arrow-icon { transform: scaleX(-1); }
:root[dir="rtl"] .article-card:hover .arrow-icon { transform: scaleX(-1) translateX(3px); }

/* ============================================================
   RESEARCHERS
   ============================================================ */
.researchers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-8) var(--s-6);
}

.researcher {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 3px solid var(--c-isr-blue);
}

.researcher__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-bg-2);
  border: 2px solid var(--c-isr-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--c-isr-blue);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.researcher__name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  margin: 0;
  line-height: 1.2;
}

.researcher__role {
  font-size: 11px;
  color: var(--c-iran-red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  margin: 0;
}

.researcher__bio {
  font-size: var(--text-sm);
  color: var(--c-ink-soft);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* ============================================================
   VIDEOS GRID
   ============================================================ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.video-card:hover {
  border-color: var(--c-isr-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.video-card__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--c-ink);
  overflow: hidden;
}

.video-card__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card__body {
  padding: var(--s-4) var(--s-5) var(--s-5);
}

.video-card__body h3 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  line-height: 1.35;
  margin: 0 0 var(--s-2);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
}

.video-card__body p {
  font-size: var(--text-sm);
  color: var(--c-ink-soft);
  margin: 0;
  line-height: var(--lh-normal);
}

/* ============================================================
   DOSSIER — Special Editorial Block (redesigned)
   ============================================================ */
.dossier {
  background: var(--c-ink);
  color: #fff;
  padding: var(--s-16) 0;
  position: relative;
}

.dossier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--c-iran-green) 0% 25%,
    #ffffff 25% 50%,
    var(--c-iran-red) 50% 75%,
    var(--c-isr-blue) 75% 100%);
}

.dossier__intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-10);
  align-items: start;
  margin-bottom: var(--s-10);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.dossier__counter-block {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-inline-end: var(--s-8);
  border-inline-end: 1px solid rgba(255,255,255,0.15);
}

.dossier__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--c-iran-red);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  align-self: flex-start;
}

.dossier__counter {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: var(--s-2);
}

:root[lang="en"] .dossier__counter {
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 700;
}

.dossier__counter-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
}

.dossier__content {
  display: flex;
  flex-direction: column;
}

.dossier__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1.2;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .dossier__title { font-size: var(--text-3xl); }
}

.dossier__meta {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  font-weight: var(--fw-semibold);
}

.dossier__lead {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0;
}

/* Dossier essays — clean editorial cards */
.dossier__essays {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
}

.dossier-essay {
  border-right: 1px solid rgba(255,255,255,0.12);
}
.dossier-essay:last-child { border-right: none; }

:root[dir="rtl"] .dossier-essay {
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.12);
}
:root[dir="rtl"] .dossier-essay:last-child { border-left: none; }

.dossier-essay__link {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-5) var(--s-5);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: background var(--t-fast);
}

.dossier-essay--link .dossier-essay__link:hover {
  background: rgba(255,255,255,0.04);
}

.dossier-essay:not(.dossier-essay--link) {
  padding: var(--s-2) var(--s-5) var(--s-5);
}

.dossier-essay__num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--c-iran-red);
  letter-spacing: 0.05em;
  margin-bottom: var(--s-2);
}

.dossier-essay__tag {
  display: inline-block;
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  margin-bottom: var(--s-2);
}

.dossier-essay__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: #fff;
  line-height: 1.3;
  margin: 0 0 var(--s-2);
  letter-spacing: -0.01em;
}

:root[lang="en"] .dossier-essay__title {
  font-variation-settings: "opsz" 36, "SOFT" 30, "wght" 600;
}

.dossier-essay__author {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  margin-bottom: var(--s-2);
}

.dossier-essay__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.78);
  line-height: var(--lh-relaxed);
  margin: 0;
}

.dossier-essay__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-isr-blue-2);
  margin-top: auto;
  padding-top: var(--s-3);
}

.dossier-essay--link:hover .dossier-essay__cta { color: #fff; }

:root[dir="rtl"] .dossier-essay__cta svg { transform: scaleX(-1); }

/* ============================================================
   MANIFESTO / VISION
   ============================================================ */
.manifesto {
  background: var(--c-bg-2);
  padding: var(--s-16) 0;
  border-block: 1px solid var(--c-line);
}

.manifesto__inner {
  max-width: 680px;
  margin: 0 auto;
}

.manifesto__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-iran-red);
  font-weight: var(--fw-bold);
  margin-bottom: var(--s-5);
}

.manifesto__lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.3;
  color: var(--c-ink);
  font-weight: var(--fw-semibold);
  font-style: italic;
  margin: 0 0 var(--s-6);
  padding-inline-start: var(--s-5);
  border-inline-start: 3px solid var(--c-iran-red);
}

:root[lang="en"] .manifesto__lead {
  font-variation-settings: "opsz" 72, "SOFT" 50, "wght" 600;
}

@media (min-width: 768px) {
  .manifesto__lead { font-size: var(--text-2xl); }
}

.manifesto__body p {
  font-size: var(--text-md);
  line-height: var(--lh-loose);
  color: var(--c-ink-soft);
  margin: 0 0 var(--s-4);
}

.manifesto__signature {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--c-ink-mute);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line-2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.8);
  padding: var(--s-12) 0 var(--s-6);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-10);
  margin-bottom: var(--s-10);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer__brand img {
  width: 40px;
  height: 40px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: #fff;
  margin: 0;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: var(--lh-relaxed);
  max-width: 340px;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--c-iran-red);
  margin: 0 0 var(--s-4);
}

.footer__col ul { display: flex; flex-direction: column; gap: var(--s-2); }
.footer__col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.72);
  transition: color var(--t-fast);
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.footer__disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: var(--lh-relaxed);
  max-width: 680px;
  margin-bottom: var(--s-4);
  font-style: italic;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms cubic-bezier(.4,0,.2,1),
              transform 500ms cubic-bezier(.4,0,.2,1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-page { padding: var(--s-12) 0 var(--s-16); }
.article-page__container { max-width: 680px; margin: 0 auto; }

.article-page__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-iran-red);
  font-weight: var(--fw-bold);
  margin-bottom: var(--s-3);
}

.article-page__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--c-ink);
  margin-bottom: var(--s-4);
  letter-spacing: -0.018em;
}

@media (min-width: 768px) {
  .article-page__title { font-size: var(--text-4xl); }
}

.article-page__meta {
  font-size: var(--text-sm);
  color: var(--c-ink-mute);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--c-line);
}

.article-page__body {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: var(--lh-loose);
  color: var(--c-ink-soft);
}

:root[lang="fa"] .article-page__body,
:root[lang="he"] .article-page__body {
  font-family: var(--font-body);
}

.article-page__body p { margin: 0 0 var(--s-4); }

.article-page__body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--c-ink);
  margin: var(--s-8) 0 var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
}

.article-page__body h3 {
  font-size: var(--text-lg);
  color: var(--c-ink);
  margin: var(--s-5) 0 var(--s-3);
}

.article-page__body blockquote {
  border-inline-start: 3px solid var(--c-iran-red);
  padding-inline-start: var(--s-4);
  margin: var(--s-5) 0;
  font-style: italic;
  color: var(--c-ink);
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .header__inner { grid-template-columns: auto 1fr auto; gap: var(--s-4); }
  .nav {
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    width: 100%;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast), transform var(--t-fast);
    z-index: 10;
    box-shadow: var(--shadow-md);
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: var(--s-3) var(--s-6); border-bottom: 1px solid var(--c-line); }
  .nav a::after { display: none; }
  .mobile-toggle { display: inline-flex; }
  .featured { grid-template-columns: 1fr; }
  .featured__media { aspect-ratio: 16 / 9; }
  .featured__body { padding: var(--s-6); }
  .footer__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .section__head { flex-direction: column; align-items: flex-start; }
  .dossier__intro { grid-template-columns: 1fr; gap: var(--s-6); }
  .dossier__counter-block {
    border-inline-end: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: var(--s-5);
    padding-inline-end: 0;
  }
}

/* ===== Substack section ===== */
.substack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.substack-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-inline-start: 3px solid #FF6719;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.substack-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 103, 25, 0.4);
  border-inline-start-color: #FF6719;
}
.substack-card__brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.substack-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #FF6719;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  border-radius: 2px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.substack-card__brand-label {
  font-weight: 600;
  color: var(--c-ink);
}
.substack-card__lang {
  margin-inline-start: auto;
  padding: 2px 8px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 0.65rem;
  color: var(--c-muted);
  letter-spacing: 0.03em;
}
.substack-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-ink);
  margin: 0;
}
.substack-card__subtitle {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--c-muted);
  margin: 0;
}
.substack-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-top: auto;
  padding-top: var(--s-2);
}
.substack-card__author {
  font-weight: 500;
  color: var(--c-ink);
}
.substack-card__dot { opacity: 0.5; }
.substack-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.85rem;
  font-weight: 500;
  color: #FF6719;
  margin-top: var(--s-2);
}
.substack-card__cta .arrow-icon {
  transition: transform var(--t-fast);
}
.substack-card:hover .arrow-icon {
  transform: translateX(3px);
}
:root[dir="rtl"] .substack-card:hover .arrow-icon {
  transform: translateX(-3px);
}

@media (max-width: 640px) {
  .brand__logo { width: 40px; height: 40px; }
  .brand__title { font-size: 0.9rem; }
  .brand__tagline { display: none; }
  .hero { padding: var(--s-10) 0 var(--s-12); }
  .hero__title { font-size: 1.25rem; white-space: normal; }
  .hero__lead { font-size: var(--text-base); }
  .section { padding: var(--s-10) 0; }
  .dossier { padding: var(--s-10) 0; }
  .dossier__title { font-size: var(--text-xl); }
  .dossier__counter { font-size: var(--text-3xl); }
  .featured__title { font-size: var(--text-lg); }
  .manifesto__lead { font-size: var(--text-lg); }
  .dossier-essay { border-right: none !important; border-left: none !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .dossier-essay:last-child { border-bottom: none; }
  :root[dir="rtl"] .dossier-essay { border-left: none !important; }
}

/* === Dossier centered layout (1000 days hero) === */
.dossier__intro--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-3);
  padding-bottom: var(--s-10);
  margin-bottom: var(--s-10);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  max-width: 920px;
  margin-inline: auto;
}
.dossier__intro--centered .dossier__badge {
  font-size: 12px;
  padding: 7px 14px;
  letter-spacing: 0.16em;
  margin-bottom: var(--s-3);
}
.dossier__intro--centered .dossier__counter {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 14vw, 11rem);
  font-weight: var(--fw-bold);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 60px rgba(255,255,255,0.08);
}
.dossier__intro--centered .dossier__title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: var(--fw-bold);
  color: #fff;
  margin: var(--s-2) 0 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.dossier__intro--centered .dossier__lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin: var(--s-4) auto 0;
}
@media (max-width: 640px) {
  .dossier__intro--centered .dossier__counter { font-size: 5rem; }
  .dossier__intro--centered .dossier__title { font-size: 1.25rem; }
  .dossier__intro--centered .dossier__lead { font-size: 0.98rem; }
}
