/* ============================================================
   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__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.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__mascot {
  position: absolute;
  top: 50%;
  right: clamp(1.3rem, 7vw, 4rem);
  width: clamp(5.5rem, 18vw, 9.5rem);
  height: auto;
  border-radius: 28%;
  transform: translateY(-50%) rotate(2deg);
  opacity: .92;
  box-shadow: 0 24px 60px -20px rgba(10, 2, 16, .85);
}
.article-hero__chips {
  position: absolute; inset: 0;
  right: 28%;
  z-index: 1;
  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; }

/* ---- Search-guide answer and learning components ---- */
.quick-answer {
  margin: 1.6rem 0 2rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(224, 97, 155, 0.35);
  border-radius: var(--r-lg);
  background:
    radial-gradient(110% 150% at 0% 0%, rgba(224, 86, 142, 0.16), transparent 65%),
    var(--surface);
}
.quick-answer .eyebrow { color: var(--brand-tint); }
.quick-answer p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.62;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.guide-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.93rem;
}
.guide-table th,
.guide-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.guide-table th {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.035);
}
.guide-table td { color: var(--muted); line-height: 1.5; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table th:first-child,
.guide-table td:first-child { color: var(--ink); font-weight: 700; }

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.3rem 0 1.8rem;
}
.decision-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.decision-card .eyebrow { color: var(--brand-tint); }
.decision-card h3 { margin: 0.45rem 0 0.4rem; font-size: 1.02rem; line-height: 1.3; }
.decision-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.guide-steps,
.guide-checklist {
  margin: 1.25rem 0 1.8rem;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}
.guide-steps li,
.guide-checklist li {
  position: relative;
  margin: 0.65rem 0;
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--muted);
  line-height: 1.55;
}
.guide-steps li { counter-increment: guide-step; }
.guide-steps li::before,
.guide-checklist li::before {
  position: absolute;
  left: 1rem;
  top: 0.78rem;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(224, 97, 155, 0.15);
  color: var(--brand-tint);
  font-size: 0.78rem;
  font-weight: 800;
}
.guide-steps li::before { content: counter(guide-step); }
.guide-checklist li::before { content: "✓"; }
.guide-steps strong,
.guide-checklist strong { color: var(--ink); }

.guide-dialogue {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  background: var(--surface);
}
.guide-dialogue p { margin: 0.55rem 0; color: var(--muted); }
.guide-dialogue strong { color: var(--brand-tint); }

.guide-faqs { margin-top: 2.8rem; }
.guide-faq {
  border-top: 1px solid var(--line);
  padding: 0;
}
.guide-faq:last-child { border-bottom: 1px solid var(--line); }
.guide-faq summary {
  position: relative;
  padding: 1rem 2rem 1rem 0;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.85rem;
  color: var(--brand-tint);
  font-size: 1.25rem;
}
.guide-faq[open] summary::after { content: "−"; }
.guide-faq p { margin: 0 0 1rem; color: var(--muted); }
.source-note {
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 95, 164, .45);
  color: var(--faint);
  font-size: .88rem;
}
.source-note a {
  color: var(--brand-tint);
  font-weight: 700;
}
.guide-cta-note {
  margin: 0.85rem 0 0 !important;
  color: var(--faint) !important;
  font-size: 0.8rem;
}
.guide-app-icon {
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-glow);
}

/* ---- Guide hub ---- */
.guide-topic-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.5rem auto 0;
}
.guide-topic-nav a {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--surface);
}
.guide-topic-nav a:hover,
.guide-topic-nav a:focus-visible { color: var(--ink); border-color: var(--brand); }
.guide-section {
  scroll-margin-top: 100px;
  margin-top: 3.2rem;
}
.guide-section-head { margin-bottom: 1rem; }
.guide-section-head h2 {
  margin: .35rem 0 0;
  color: var(--ink);
  font-size: 1.5rem;
}
.featured-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.post-card--featured {
  min-height: 15rem;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(224, 86, 142, 0.16), transparent 62%),
    var(--surface);
}
.post-meta {
  display: block;
  margin-top: .7rem;
  color: var(--faint);
  font-size: .78rem;
}
.post-card__meta {
  display: flex;
  gap: 0.35rem 0.7rem;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.78rem;
  margin-top: 0.7rem;
}

/* ---- 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; }
  .featured-post-grid,
  .decision-grid { grid-template-columns: 1fr; }
  .article-hero__chips { right: 0; }
  .article-hero__mascot { right: .75rem; opacity: .28; }
  .breadcrumb { font-size: 0.78rem; }
}
