/* LAVI v1.39 — mobile hero and story page cleanup */

/* 1) Home hero: remove the overlay CTA from the poster image on small screens */
@media (max-width: 700px) {
  .hero-slide {
    padding-top: 24px;
    padding-bottom: 68px;
  }

  .hero-slide .hero-grid {
    gap: 18px;
  }

  .hero-open-story {
    display: none !important;
  }

  .hero-copy h1 {
    font-size: 31px;
    line-height: 1.42;
    margin-bottom: 10px;
  }

  .hero-copy > p {
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-meta {
    margin-top: 16px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .hero-meta span {
    white-space: nowrap;
  }
}

/* 2) Story pages on mobile: clean stack instead of cramped side-by-side layout */
@media (max-width: 700px) {
  .story-hero {
    padding: 26px 0 28px;
  }

  .story-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
    align-items: start;
  }

  .story-hero-media {
    order: 1;
    height: auto;
    min-height: 0;
  }

  .story-hero-media img,
  .story-hero-media video {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    display: block;
  }

  .story-hero-copy {
    order: 2;
  }

  .story-hero-copy h1 {
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 10px;
  }

  .story-hero-copy > p {
    font-size: 14px;
    line-height: 1.95;
    color: #57524a;
  }

  .story-tags {
    gap: 6px;
    margin-top: 14px;
  }

  .story-tags span {
    padding: 6px 9px;
    font-size: 10px;
    line-height: 1.4;
    background: #fff;
  }

  .story-content-section {
    padding: 32px 0 38px;
  }

  .story-content-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .story-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 0;
    border-bottom: 1px solid var(--lavi-line, #ddd);
    padding: 0 0 12px;
    margin-bottom: 2px;
  }

  .story-index {
    font-size: 32px;
    margin: 0;
    line-height: 1;
    flex: 0 0 auto;
  }

  .story-side .text-link {
    font-size: 12px;
    color: var(--lavi-burgundy, #701d20);
    border-bottom-color: var(--lavi-burgundy, #701d20);
    padding-bottom: 2px;
  }

  .story-body p,
  .story-body .story-first-paragraph {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 18px;
  }
}

/* 3) Fix the broken oversized first-letter effect for Persian / Arabic stories */
html[dir="rtl"] .story-body .story-first-paragraph::first-letter,
body.is-rtl .story-body .story-first-paragraph::first-letter,
html[lang="fa"] .story-body .story-first-paragraph::first-letter,
html[lang="ar"] .story-body .story-first-paragraph::first-letter {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  float: none !important;
  line-height: inherit !important;
  margin: 0 !important;
}
