/* ============================================================
   Blog / articles. Builds on styles.css tokens (dark glass, rose brand).
   Loaded only on /blog pages, after styles.css + extra.css.
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  /* clear the fixed .site-header (matches the hero's 96px offset) */
  padding: clamp(5.75rem, 4rem + 4vw, 7rem) var(--gutter) 0;
  font-size: 0.82rem;
  color: var(--faint);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--faint); opacity: 0.6; }

/* Article shell — a comfortable reading measure */
.article { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); }

.article__head { padding: 1.6rem 0 0.4rem; }
.article__head .eyebrow { color: var(--brand-tint); }
.article__head h1 {
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0;
  color: var(--ink);
}
.article__meta {
  display: flex;
  gap: 0.4rem 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--faint);
}
.article__meta .dot { opacity: 0.5; }
.article__lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.5;
  margin: 1.2rem 0 0;
}

/* Prose */
.prose { font-size: 1.07rem; line-height: 1.72; color: rgba(255, 255, 255, 0.85); }
.prose > p { margin: 1.15rem 0; }
.prose h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.8rem 0 0.5rem;
}
.prose h3 { font-size: 1.18rem; color: var(--ink); margin: 2rem 0 0.2rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--brand-tint); font-weight: 600; }
.prose em { color: rgba(255, 255, 255, 0.92); font-style: italic; }

/* Jump links (table of contents) */
.toc {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.toc p { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-weight: 800; margin: 0 0 0.6rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; }
.toc a { color: var(--brand-tint); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.toc a:hover { color: var(--ink); }

/* Phrase groups (reuse .card / .pair-card / .pair / .pair-spk from styles.css) */
.phrase-group { margin: 1.5rem 0; scroll-margin-top: 90px; }
.phrase-group__label {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-tint);
  font-weight: 800;
  margin: 0 0 0.15rem;
}
.phrase-group__sub { color: var(--faint); font-size: 0.9rem; margin: 0 0 0.85rem; }

/* In an article the Urdu phrase leads (prominent), the meaning is the label.
   This flips the homepage .pair defaults, which are meaning-led. */
.article .pair .latin { color: var(--ink); font-weight: 800; font-size: 1.12rem; }
.article .pair .de { color: var(--faint); font-weight: 600; font-size: 0.9rem; margin-top: 3px; }

/* Inline "download" call-to-action card inside an article */
.article-cta {
  margin: 2.4rem 0;
  padding: 1.6rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(224, 86, 142, 0.16), transparent 60%),
    var(--surface);
  text-align: center;
}
.article-cta h3 { font-size: 1.35rem; color: var(--ink); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.article-cta p { color: var(--muted); margin: 0 auto 1.1rem; max-width: 32rem; }
.article-cta .hero__cta { justify-content: center; }

/* Related articles */
.related { margin-top: 2.4rem; }
.related h2 { font-size: 1.3rem; color: var(--ink); margin: 0 0 1rem; }
.related-grid { display: grid; gap: 0.8rem; }
.related-card {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.related-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.related-card b { color: var(--ink); font-weight: 700; display: block; }
.related-card span { color: var(--faint); font-size: 0.9rem; }

/* Blog index cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.post-card {
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.post-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.post-card .eyebrow { color: var(--brand-tint); }
.post-card h3 { color: var(--ink); font-size: 1.18rem; line-height: 1.2; margin: 0.5rem 0 0.4rem; letter-spacing: -0.01em; }
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.post-card .read { color: var(--brand-tint); font-weight: 700; font-size: 0.9rem; margin-top: 1rem; }

/* ---- Author byline ---- */
.article-author { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.3rem; }
.article-author__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-gradient);
  display: grid; place-items: center;
  font-size: 1.35rem; flex: none;
  box-shadow: 0 8px 20px -8px var(--brand);
}
.article-author__name { color: var(--ink); font-weight: 700; font-size: 0.98rem; display: block; }
.article-author__bio { color: var(--faint); font-size: 0.83rem; display: block; margin-top: 1px; }

/* ---- Editorial hero (brand graphic, not a photo) ---- */
.article-hero {
  position: relative;
  margin: 1.5rem 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  max-height: 320px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 130% at 12% 8%, rgba(224, 86, 142, 0.55), transparent 55%),
    radial-gradient(120% 130% at 100% 100%, rgba(142, 47, 102, 0.6), transparent 60%),
    #1a0f24;
}
.article-hero__moon {
  position: absolute; right: -4%; bottom: -18%;
  width: 46%; max-width: 220px; color: #fff;
}
.article-hero__chips {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.6rem; padding: clamp(1.1rem, 3vw, 2rem);
}
.ah-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  align-self: flex-start;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-weight: 700; font-size: clamp(0.85rem, 2.4vw, 1rem);
}
.ah-chip small { color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.ah-chip svg { width: 15px; height: 15px; opacity: 0.85; flex: none; }
.ah-chip--lead { font-size: clamp(1rem, 3.2vw, 1.3rem); padding: 0.6rem 1rem; }

/* ---- Helpful boxes (not CTAs): pronunciation guide + notes ---- */
.tip-box {
  margin: 1.6rem 0;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  background: var(--surface);
}
.tip-box h3 { color: var(--ink); font-size: 1.05rem; margin: 0 0 0.6rem; }
.tip-box ul { margin: 0; padding-left: 1.1rem; color: rgba(255, 255, 255, 0.82); }
.tip-box li { margin: 0.35rem 0; line-height: 1.6; }
.tip-box li b { color: var(--brand-tint); }

.note { color: var(--muted); font-size: 0.98rem; line-height: 1.65; }
.prose .note em { color: var(--brand-tint); font-style: normal; font-weight: 600; }

/* ---- Responsive refinements ---- */
@media (max-width: 640px) {
  .article__head h1 { font-size: clamp(1.85rem, 6.5vw, 2.3rem); }
  .article-hero { aspect-ratio: 16 / 9; }
  .prose { font-size: 1.02rem; }
  .post-grid { grid-template-columns: 1fr; }
  .breadcrumb { font-size: 0.78rem; }
}
