/* ════════════════════════════════════════════════════════════════════
   Article overrides — featured image, tags, related cards
   Loaded after ../what-is-vyoma/assets/css/style.css for per-article look
   ════════════════════════════════════════════════════════════════════ */

/* SR-only helper (preserve accessibility, hide visually) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Article tag chip above the title */
.article-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 18px;
  background: #f1e7d8;
  border: 1px solid #d9cbb3;
  border-radius: 999px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6b5840;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Make article-body sections immediately visible (no fade-up dependency) */
.article-body .prose {
  opacity: 1 !important;
  transform: none !important;
}

/* Section divider art */
.section-divider-art {
  margin: 28px auto;
  max-width: 200px;
  display: flex;
  justify-content: center;
}
.section-divider-art svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Featured illustration figure */
.featured-figure {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 0;
}
.featured-figure .featured {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(26, 23, 20, 0.06);
}

/* Prose links */
.prose-link,
.prose a {
  color: #c14d1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(193, 77, 26, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.prose-link:hover,
.prose a:hover {
  color: #a23e10;
  border-bottom-color: #c14d1a;
}

/* Inline code */
.prose code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.92em;
  background: #f1e7d8;
  padding: 2px 6px;
  border-radius: 4px;
  color: #5a4830;
}

/* Related articles section */
.related-articles {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #e0d6c2;
}
.related-heading {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: #1a1714;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-card {
  display: block;
  padding: 22px 20px;
  background: #f8f3e9;
  border: 1px solid #e0d6c2;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover {
  border-color: #c14d1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 23, 20, 0.06);
}
.related-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: #6b5840;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.related-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1714;
  margin: 0 0 8px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.related-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5a4830;
  margin: 0;
}

/* Mobile: stack related cards, tighten article spacing */
@media (max-width: 768px) {
  .featured-figure { margin: 24px auto 0; }
  .featured-figure .featured { border-radius: 10px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-heading { font-size: 20px; }
  .article-tag { font-size: 11px; padding: 3px 10px; }
  .section-divider-art { margin: 20px auto; max-width: 140px; }
}

/* Dark theme support (matches the rest of the site if it ever flips) */
@media (prefers-color-scheme: dark) {
  /* The base style.css already handles dark mode — these are extras */
  .article-tag {
    background: rgba(232, 98, 42, 0.12);
    border-color: rgba(232, 98, 42, 0.3);
    color: #f1c5a8;
  }
  .related-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
  }
  .prose code {
    background: rgba(255, 255, 255, 0.06);
    color: #f0c5a0;
  }
}
