/* ============================================================
   dikr blog — public styles
   Builds on the site design tokens in /assets/css/style.css
   ============================================================ */

.blog-page, .home-blog {
  --card-bg:     #ffffff;
  --card-shadow: 0 1px 2px rgba(15, 40, 60, .04), 0 8px 24px rgba(15, 40, 60, .06);
  --card-hover:  0 2px 4px rgba(15, 40, 60, .05), 0 18px 40px rgba(20, 110, 170, .14);
  --ink:         #16242f;
  --muted:       #5f6b76;
  --prose:       #23303a;
  --emerald:     #0f9d76;
  --emerald-bg:  rgba(15, 157, 118, .08);
  --amber:       #c47f0a;
  --amber-bg:    rgba(245, 166, 35, .10);
  --radius:      20px;
  --font-read:   'Amiri', 'Scheherazade New', Georgia, serif;
}
body.dark.blog-page, body.dark .home-blog {
  --card-bg:     #1c1c1e;
  --card-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.35);
  --card-hover:  0 1px 0 rgba(255,255,255,.05) inset, 0 18px 40px rgba(0,0,0,.5);
  --ink:         #f2f2f7;
  --muted:       #a1a1a8;
  --prose:       #e2e2e8;
  --emerald:     #34d3a2;
  --emerald-bg:  rgba(52, 211, 162, .08);
  --amber:       #f5b544;
  --amber-bg:    rgba(245, 181, 68, .09);
}

.blog-page a { -webkit-tap-highlight-color: transparent; }

/* ── Layout wrappers ────────────────────────────────────────── */
.blog-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 56px; }
.post-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 40px; }

/* ── Hero ───────────────────────────────────────────────────── */
.blog-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 24px 0 22px;
  padding: 56px 24px 44px;
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(70,191,255,.20), transparent 70%),
    linear-gradient(180deg, var(--page-bg), var(--page-bg));
  border: 1px solid var(--blue-border);
  box-shadow: var(--card-shadow);
}
.blog-hero::before {  /* subtle 8-point star lattice */
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6l5 9 10-3-3 10 9 6-9 6 3 10-10-3-5 9-5-9-10 3 3-10-9-6 9-6-3-10 10 3z' fill='none' stroke='%2346bfff' stroke-opacity='.13' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.blog-hero-orb { position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.blog-orb-1 { width: 260px; height: 260px; background: rgba(70,191,255,.22); top: -120px; right: -60px; }
.blog-orb-2 { width: 200px; height: 200px; background: rgba(10,132,255,.14); bottom: -110px; left: -40px; }

.blog-eyebrow {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--blue-darker);
  background: var(--blue-bg); border: 1px solid var(--blue-border);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
body.dark .blog-eyebrow { color: var(--blue); }
.blog-title {
  position: relative;
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}
.blog-sub {
  position: relative;
  max-width: 560px; margin: 0 auto 24px;
  font-size: 17px; line-height: 1.9; color: var(--muted);
}
.blog-sub a { color: var(--blue-darker); }
body.dark .blog-sub a { color: var(--blue); }

.blog-search {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  max-width: 520px; margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: 999px;
  padding: 6px 6px 6px 6px;
  box-shadow: 0 6px 20px rgba(20,110,170,.08);
  transition: border-color .2s, box-shadow .2s;
}
.blog-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-glow); }
.blog-search > i { color: var(--text-ter); margin-right: 12px; font-size: 14px; }
.blog-search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 8px 4px;
}
.blog-search input::-webkit-search-cancel-button { display: none; }
.blog-search button {
  border: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #46bfff, #0a84ff);
  padding: 9px 22px; border-radius: 999px;
  transition: transform .15s, filter .15s;
}
.blog-search button:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ── Category chips ─────────────────────────────────────────── */
.blog-cats {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 2px 14px; margin-bottom: 8px;
  scrollbar-width: none;
}
.blog-cats::-webkit-scrollbar { display: none; }
.blog-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; text-decoration: none;
  color: var(--muted);
  background: var(--card-bg);
  border: 1px solid var(--separator);
  padding: 7px 16px; border-radius: 999px;
  transition: all .18s;
}
.blog-chip span {
  font-size: 12px; min-width: 20px; text-align: center;
  background: var(--sys-bg); border-radius: 999px; padding: 0 6px;
}
.blog-chip:hover { color: var(--blue-darker); border-color: var(--blue-border); }
.blog-chip.active { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.blog-chip.active span { background: rgba(255,255,255,.22); }

/* ── Cards ──────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.bcard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--separator);
  transition: transform .28s var(--ease-ios), box-shadow .28s var(--ease-ios);
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--card-hover); }
.bcard-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sys-bg2); }
.bcard-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-ios); }
.bcard:hover .bcard-img { transform: scale(1.04); }
.bcard-img.is-empty, .post-cover-img.is-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: rgba(255,255,255,.9);
  background: linear-gradient(135deg, #7fd4ff 0%, #46bfff 45%, #0a84ff 100%);
}
.bcard-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 18px; }
.bcard-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.bcard-cat {
  position: relative; z-index: 2;
  font-size: 13px; font-weight: 700; text-decoration: none;
  color: var(--blue-darker); background: var(--blue-bg);
  padding: 2px 10px; border-radius: 999px;
}
body.dark .bcard-cat { color: var(--blue); }
.bcard-read i { font-size: 11px; margin-left: 3px; }
.bcard-title { font-size: 21px; line-height: 1.55; margin-bottom: 8px; color: var(--ink); }
.bcard-link { color: inherit; text-decoration: none; }
.bcard-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }  /* whole card clickable */
.bcard-link:focus-visible { outline: none; }
.bcard:has(.bcard-link:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.bcard-excerpt {
  font-size: 15.5px; line-height: 1.85; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px;
}
.bcard-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px dashed var(--separator);
  font-size: 13.5px; color: var(--text-ter);
}
.bcard-more { color: var(--blue-darker); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
body.dark .bcard-more { color: var(--blue); }
.bcard-more i { font-size: 11px; transition: transform .2s; }
.bcard:hover .bcard-more i { transform: translateX(-4px); }

/* Featured (latest) post */
.bcard-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin-bottom: 26px;
}
.bcard-featured .bcard-media { aspect-ratio: auto; min-height: 320px; }
.bcard-featured .bcard-body { padding: 32px 32px 26px; justify-content: center; }
.bcard-featured .bcard-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.45; }
.bcard-featured .bcard-excerpt { font-size: 17px; -webkit-line-clamp: 4; }
.bcard-featured .bcard-media::after {
  content: 'الأحدث';
  position: absolute; top: 14px; right: 14px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(10, 132, 255, .85);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 4px 12px; border-radius: 999px;
}

/* ── Empty state & pager ────────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 56px 20px;
  background: var(--card-bg);
  border: 1px dashed var(--blue-border);
  border-radius: var(--radius);
  margin: 10px 0 28px;
}
.blog-empty-icon {
  width: 76px; height: 76px; margin: 0 auto 16px;
  display: grid; place-items: center;
  font-size: 30px; color: var(--blue-dark);
  background: var(--blue-bg); border-radius: 24px;
}
.blog-empty h1, .blog-empty h2 { font-size: 26px; color: var(--ink); margin-bottom: 8px; }
.blog-empty p { color: var(--muted); font-size: 16px; line-height: 1.9; margin-bottom: 18px; }

.blog-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 34px 0 8px; }
.pager-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; text-decoration: none;
  color: var(--blue-darker); background: var(--card-bg);
  border: 1px solid var(--blue-border);
  padding: 9px 18px; border-radius: 999px;
  transition: background .18s;
}
.pager-btn:hover { background: var(--blue-bg); }
.pager-btn.is-off { opacity: .4; pointer-events: none; }
.pager-btn i { font-size: 11px; }
.pager-info { font-size: 14px; color: var(--muted); }

.btn-soft {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  color: var(--blue-darker); background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  padding: 10px 22px; border-radius: 999px;
  transition: background .18s, transform .18s;
}
.btn-soft:hover { background: rgba(70,191,255,.2); transform: translateY(-1px); }
body.dark .btn-soft { color: var(--blue); }

/* ── Article ────────────────────────────────────────────────── */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.read-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: right; transform: scaleX(0);
  background: linear-gradient(90deg, #0a84ff, #46bfff);
  box-shadow: 0 0 8px rgba(70,191,255,.6);
}

.preview-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 15px; color: #7a4d00;
  background: #fff4d6; border-bottom: 1px solid #f3d27a;
  padding: 10px 16px;
}
.preview-bar a { color: #0a64c4; font-weight: 700; }

.post { max-width: 1080px; margin: 0 auto; }
.post-head { max-width: 760px; margin: 0 auto; padding: 34px 0 22px; text-align: center; }

.crumbs {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  font-size: 14px; margin-bottom: 18px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-dark); }
.crumbs a:last-child { color: var(--blue-darker); font-weight: 700; }
body.dark .crumbs a:last-child { color: var(--blue); }
.crumbs i { font-size: 9px; color: var(--text-ter); }

.post-title {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}
.post-lead { font-size: 19px; line-height: 1.95; color: var(--muted); margin-bottom: 20px; text-wrap: pretty; }
.post-meta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 18px; font-size: 14.5px; color: var(--muted);
}
.post-meta i { color: var(--blue-dark); margin-left: 4px; font-size: 13px; }
.post-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.post-brand img { width: 28px; height: 28px; border-radius: 22%; box-shadow: 0 2px 6px rgba(70,191,255,.3); }

.post-cover { max-width: 1000px; margin: 8px auto 34px; }
.post-cover-img {
  display: block; width: 100%; height: auto;
  max-height: 560px; object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(20, 60, 90, .18);
}

.post-grid { max-width: 760px; margin: 0 auto; }
.post-grid.has-toc {
  max-width: 1040px;
  display: grid;
  grid-template-columns: minmax(0, 740px) 250px;
  justify-content: center;
  gap: 40px;
  align-items: start;
}
.post-grid.has-toc .post-toc { order: 2; position: sticky; top: 84px; }
.post-grid.has-toc .prose { order: 1; }

.toc {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--card-shadow);
}
.toc summary {
  cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary i { color: var(--blue-dark); font-size: 13px; }
.toc ol { list-style: none; margin-top: 10px; max-height: 60vh; overflow: auto; }
.toc li a {
  display: block;
  font-size: 14.5px; line-height: 1.6; text-decoration: none;
  color: var(--muted);
  padding: 6px 12px 6px 6px;
  border-right: 2px solid var(--separator);
  transition: color .15s, border-color .15s, background .15s;
}
.toc li.toc-l3 a { padding-right: 24px; font-size: 13.5px; }
.toc li a:hover { color: var(--blue-dark); }
.toc li a.active { color: var(--blue-darker); border-right-color: var(--blue); background: var(--blue-bg); font-weight: 700; }
body.dark .toc li a.active { color: var(--blue); }

/* ── Prose: article typography ─────────────────────────────── */
.prose {
  font-family: var(--font-read);
  font-size: 20px;
  line-height: 2.05;
  color: var(--prose);
  word-wrap: break-word;
}
.prose > * + * { margin-top: 1.05em; }
.prose p { text-wrap: pretty; }
.prose .b-lead, .prose > p:first-child { font-size: 1.1em; color: var(--ink); }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.5; scroll-margin-top: 90px; text-wrap: balance; }
.prose h2 {
  font-size: 1.45em; margin-top: 1.9em;
  padding-right: 16px; position: relative;
}
.prose h2::before {
  content: ''; position: absolute; right: 0; top: .28em; bottom: .28em; width: 5px;
  border-radius: 4px; background: linear-gradient(180deg, #46bfff, #0a84ff);
}
.prose h3 { font-size: 1.22em; margin-top: 1.6em; }
.prose h4 { font-size: 1.08em; margin-top: 1.4em; }
.prose a { color: var(--blue-darker); text-decoration: underline; text-decoration-color: var(--blue-border); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--blue); }
body.dark .prose a { color: var(--blue); }
.prose strong, .prose b { color: var(--ink); }
.prose mark { background: linear-gradient(180deg, transparent 55%, rgba(70,191,255,.35) 55%); color: inherit; padding: 0 2px; }
.prose ul, .prose ol { padding-right: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--blue-dark); }
.prose hr {
  border: 0; height: 24px; margin: 2em 0; text-align: center;
  background: none;
}
.prose hr::after { content: '۞ ۞ ۞'; color: var(--blue); letter-spacing: 14px; font-size: 18px; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; display: block; margin-inline: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: .78em; text-align: center; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.prose blockquote:not(.b-hadith blockquote) {
  border-right: 4px solid var(--blue);
  background: var(--blue-bg);
  padding: 14px 20px; border-radius: 4px 16px 16px 4px;
  color: var(--ink);
}
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .8em; background: var(--sys-bg); padding: 2px 6px; border-radius: 6px; direction: ltr; unicode-bidi: embed; }
.prose pre { background: #0f1720; color: #e6edf3; padding: 16px; border-radius: 14px; overflow-x: auto; direction: ltr; text-align: left; font-size: .75em; line-height: 1.7; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose details { background: var(--card-bg); border: 1px solid var(--separator); border-radius: 14px; padding: 12px 18px; }
.prose summary { cursor: pointer; font-weight: 700; color: var(--ink); }

.b-table { overflow-x: auto; border-radius: 14px; border: 1px solid var(--separator); }
.prose table { width: 100%; border-collapse: collapse; font-size: .85em; background: var(--card-bg); }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--separator); text-align: right; }
.prose th { background: var(--blue-bg); color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }

.b-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.b-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Quran verse */
.prose .b-ayah {
  position: relative;
  text-align: center;
  padding: 30px 26px 22px;
  margin-block: 1.6em;
  border-radius: 22px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(70,191,255,.14), transparent 70%),
    var(--card-bg);
  border: 1px solid var(--blue-border);
  box-shadow: inset 0 0 0 6px var(--card-bg), inset 0 0 0 7px rgba(70,191,255,.18);
}
.prose .b-ayah::before {
  content: 'قال الله تعالى';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #46bfff, #0a84ff);
  padding: 2px 14px; border-radius: 999px; white-space: nowrap;
}
.prose .b-ayah p {
  font-family: var(--font-quran);
  font-size: 1.45em; line-height: 2.1;
  color: var(--ink);
}
.prose .b-ayah figcaption, .prose .b-ayah cite { display: block; font-style: normal; font-size: .75em; color: var(--blue-darker); margin-top: 6px; }
body.dark .prose .b-ayah figcaption, body.dark .prose .b-ayah cite { color: var(--blue); }

/* Hadith */
.prose .b-hadith {
  position: relative;
  padding: 22px 24px 18px;
  margin-block: 1.6em;
  border-radius: 20px;
  background: var(--emerald-bg);
  border: 1px solid rgba(15,157,118,.22);
}
.prose .b-hadith::before {
  content: 'عن النبي ﷺ';
  display: inline-block; margin-bottom: 8px;
  font-size: 13px; font-weight: 700; color: var(--emerald);
}
.prose .b-hadith blockquote, .prose .b-hadith p { color: var(--ink); font-size: 1.05em; }
.prose .b-hadith figcaption, .prose .b-hadith cite { display: block; text-align: left; font-style: normal; font-size: .78em; color: var(--emerald); margin-top: 8px; }

/* Callouts */
.prose .b-callout {
  position: relative;
  padding: 16px 20px 16px 20px;
  padding-right: 58px;
  border-radius: 18px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  margin-block: 1.5em;
}
.prose .b-callout::before {
  content: '💡';
  position: absolute; right: 18px; top: 16px; font-size: 22px; line-height: 1.4;
}
.prose .b-callout.b-warn { background: var(--amber-bg); border-color: rgba(245,166,35,.35); }
.prose .b-callout.b-warn::before { content: '⚠️'; }
.prose .b-callout.b-dhikr { background: var(--emerald-bg); border-color: rgba(15,157,118,.25); text-align: center; padding-right: 20px; }
.prose .b-callout.b-dhikr::before { content: none; }
.prose .b-callout.b-dhikr p { font-family: var(--font-quran); font-size: 1.3em; color: var(--ink); }
.prose .b-callout > * + * { margin-top: .5em; }

/* ── Article footer ─────────────────────────────────────────── */
.post-foot { max-width: 740px; margin: 40px auto 0; }
.post-grid.has-toc + .post-foot { max-width: 1040px; padding-left: 290px; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.post-tags i { color: var(--text-ter); margin-left: 4px; }
.post-tags a {
  font-size: 14px; text-decoration: none;
  color: var(--muted); background: var(--card-bg);
  border: 1px solid var(--separator);
  padding: 4px 12px; border-radius: 999px;
}
.post-tags a:hover { color: var(--blue-dark); border-color: var(--blue-border); }

.post-share {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}
.post-share-label { font-size: 17px; font-weight: 700; color: var(--ink); }
.post-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px; text-decoration: none; cursor: pointer;
  border: 0; color: #fff;
  transition: transform .15s, filter .15s;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #229ed9; }
.share-x        { background: #111; }
.x-glyph { font-family: -apple-system, 'Segoe UI Symbol', sans-serif; font-size: 18px; line-height: 1; }
.share-facebook { background: #1877f2; }
.share-copy, .share-native { background: var(--blue-bg); color: var(--blue-darker); border: 1px solid var(--blue-border); }
body.dark .share-x { background: #333; }
body.dark .share-copy, body.dark .share-native { color: var(--blue); }
.share-copy.copied { background: var(--emerald); color: #fff; border-color: transparent; }

.post-dua {
  text-align: center;
  font-family: var(--font-quran);
  font-size: 22px; color: var(--blue-darker);
  margin: 30px 0 0;
}
body.dark .post-dua { color: var(--blue); }

.related { margin-top: 56px; }
.related-title {
  font-size: 26px; color: var(--ink);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.related-title::after { content: ''; flex: 1; height: 1px; background: var(--separator); }
.post-back { text-align: center; margin-top: 34px; }

/* ── Homepage "latest articles" strip ─────────────────────── */
.home-blog { max-width: 1080px; margin: 0 auto; padding: 0 20px 56px; }
.home-blog-more { text-align: center; margin-top: 24px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .post-grid.has-toc { display: block; max-width: 760px; }
  .post-grid.has-toc .post-toc { position: static; margin-bottom: 26px; }
  .post-grid.has-toc + .post-foot { padding-left: 0; max-width: 740px; }
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .bcard-featured { grid-template-columns: 1fr; }
  .bcard-featured .bcard-media { aspect-ratio: 16 / 9; min-height: 0; }
  .bcard-featured .bcard-body { padding: 22px 22px 20px; }
}
@media (max-width: 620px) {
  .blog-wrap, .post-wrap, .home-blog { padding-left: 16px; padding-right: 16px; }
  .blog-hero { padding: 40px 18px 30px; margin-top: 14px; border-radius: 22px; }
  .blog-sub { font-size: 16px; }
  .blog-search button { padding: 9px 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .bcard-title { font-size: 20px; }
  .post-head { padding-top: 22px; }
  .post-lead { font-size: 17px; }
  .post-cover { margin: 0 -16px 26px; }
  .post-cover-img { border-radius: 0; }
  .prose { font-size: 18.5px; line-height: 2; }
  .prose .b-ayah { padding: 28px 16px 18px; }
  .prose .b-ayah p { font-size: 1.3em; }
  .post-share { flex-direction: column; align-items: stretch; text-align: center; }
  .post-share-btns { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .bcard, .bcard-img, .bcard-more i, .share-btn { transition: none; }
  .bcard:hover { transform: none; }
  .bcard:hover .bcard-img { transform: none; }
}

@media print {
  .site-header, .site-footer, .app-promo, .quick-nav, .post-share, .related, .post-back, .read-progress, .post-toc, .app-banner { display: none !important; }
  .prose { font-size: 14pt; color: #000; }
}
