/* رصدخانه — «مجلهٔ رصدخانه»: the post list and the reading page. Plain CSS, site tokens only. */

.blog-hero { position: relative; z-index: 3; padding: 34px 6.5% 8px; display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 22px; }
.blog-hero h1 { font-size: clamp(34px, 3.8vw, 56px); line-height: 1.35; margin: 0 0 10px; }
.blog-hero p { color: var(--muted); font-size: 16px; line-height: 2; margin: 0; max-width: 620px; }
.blog-search { display: flex; gap: 8px; min-width: min(100%, 340px); }
.blog-search input { flex: 1; min-height: 46px; padding: 0 18px; border-radius: 24px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-size: 14px; }
.blog-search button { min-height: 46px; padding: 0 20px; border-radius: 24px; border: 0; background: var(--accent);
  color: #140d33; font: inherit; font-weight: 700; cursor: pointer; }
.blog-wrap { padding: 18px 6.5% 90px; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 30px; }
.blog-chips a { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--line); color: var(--nav); font-size: 13px;
  transition: border-color .2s, color .2s, background .2s; }
.blog-chips a:hover { border-color: var(--accent); color: var(--ink); }
.blog-chips a.on { background: var(--accent); border-color: var(--accent); color: #140d33; font-weight: 700; }

/* cover: no photos — a night-sky gradient with the category glyph */
.b-cover { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 9;
  background: radial-gradient(120% 90% at 80% 10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
              radial-gradient(90% 80% at 10% 100%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 55%),
              linear-gradient(160deg, #1b1440, #0b0820); }
.b-cover::before { content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 22%, #fff 99%, transparent), radial-gradient(1px 1px at 72% 18%, #fff 99%, transparent),
    radial-gradient(1.4px 1.4px at 40% 70%, #fff 99%, transparent), radial-gradient(1px 1px at 88% 64%, #fff 99%, transparent),
    radial-gradient(1px 1px at 22% 82%, #fff 99%, transparent), radial-gradient(1.2px 1.2px at 58% 40%, #fff 99%, transparent); }
.b-cover span { position: relative; font-family: var(--font-glyph); font-size: clamp(40px, 6vw, 72px); color: #f4e7c6;
  text-shadow: 0 0 30px color-mix(in srgb, var(--gold) 70%, transparent); }

.b-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; padding: 22px;
  border: 1px solid var(--line); border-radius: 30px; background: var(--card); margin-bottom: 38px; }
.b-featured h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.6; margin: 10px 0 12px; }
.b-featured p { color: var(--muted); line-height: 2.05; margin: 0 0 18px; }
.b-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: 12.5px; }
.b-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.b-cat { display: inline-block; padding: 4px 12px; border-radius: 14px; font-size: 12px; color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }

.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.b-card { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 20px; border-radius: 24px;
  border: 1px solid var(--line); background: var(--card); transition: transform .3s, border-color .3s, box-shadow .3s; }
.b-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.b-card h3 { font-size: 17px; line-height: 1.75; margin: 4px 4px 0; }
.b-card p { color: var(--muted); font-size: 13.5px; line-height: 2; margin: 0 4px; flex: 1; }
.b-card .b-meta { margin: 0 4px; }
.b-empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 24px; }
.b-pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.b-pager a, .b-pager span { min-width: 42px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); text-align: center; font-size: 13px; }
.b-pager span { background: var(--accent); color: #140d33; border-color: var(--accent); font-weight: 700; }

/* ---------- the reading page ---------- */
.post-head { position: relative; z-index: 3; padding: 26px 6.5% 0; max-width: 980px; margin-inline: auto; text-align: center; }
.post-crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.post-crumbs a:hover { color: var(--ink); }
.post-head h1 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.55; margin: 14px 0 16px; }
.post-head .lead { color: var(--muted); font-size: 17px; line-height: 2.1; margin: 0 auto 20px; max-width: 760px; }
.post-head .b-meta { justify-content: center; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 46px; max-width: 1180px; margin: 34px auto 0;
  padding: 0 6.5% 80px; align-items: start; }
.post-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.toc b { display: block; font-size: 13px; margin-bottom: 10px; color: var(--muted); }
.toc ol { margin: 0; padding: 0 18px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.8; }
.toc a { color: var(--nav); }
.toc a:hover, .toc a.on { color: var(--accent); }
.aside-cta { padding: 20px; border-radius: 20px; text-align: center;
  background: radial-gradient(120% 120% at 100% 0, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.aside-cta b { display: block; font-size: 15px; margin-bottom: 8px; }
.aside-cta p { color: var(--muted); font-size: 12.5px; line-height: 1.9; margin: 0 0 14px; }
.aside-cta .explore-button { width: 100%; justify-content: center; min-height: 44px; font-size: 13px; }

.post-body { font-size: 17px; line-height: 2.25; color: var(--ink); }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.7; margin: 46px 0 14px; scroll-margin-top: 110px; }
.post-body h3 { font-size: 19px; line-height: 1.8; margin: 30px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-right: 22px; display: flex; flex-direction: column; gap: 8px; }
.post-body li::marker { color: var(--accent); }
.post-body a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.post-body a:hover { border-bottom-color: var(--accent); }
.post-body strong { color: var(--ink); }
.post-body blockquote { margin: 26px 0; padding: 18px 22px; border-right: 3px solid var(--gold); border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--gold) 8%, transparent); color: var(--ink); }

.mid-cta { display: flex; align-items: center; gap: 20px; margin: 34px 0; padding: 24px 26px; border-radius: 24px;
  background: radial-gradient(120% 140% at 0 0, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.mid-cta .glyph { font-size: 40px; color: var(--gold); }
.mid-cta div { flex: 1; }
.mid-cta b { display: block; font-size: 17px; margin-bottom: 6px; }
.mid-cta p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.mid-cta .explore-button { min-height: 48px; padding: 12px 20px; font-size: 14px; white-space: nowrap; }

.post-cover { margin: 26px 0 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1200 / 630; }
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b-meta a { color: inherit; } .b-meta a:hover { color: var(--accent); }

/* «خلاصه در یک نگاه»: the answer first — what search snippets and AI answer engines quote */
.key-points { margin: 0 0 34px; padding: 22px 26px; border-radius: 22px; background: var(--card);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.key-points h2 { font-size: 16px; margin: 0 0 12px; color: var(--gold); }
.key-points ul { margin: 0; padding-right: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; line-height: 2.05; }
.key-points li::marker { color: var(--gold); }

.post-sources { margin-top: 40px; font-size: 14px; line-height: 2; }
.post-sources h2 { font-size: 18px; margin: 0 0 10px; }
.post-sources ol { margin: 0; padding-right: 22px; }
.post-sources a { color: var(--accent); word-break: break-word; }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 22px 24px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--card); }
.author-box .glyph { font-size: 30px; color: var(--gold); line-height: 1; }
.author-box b { display: block; font-size: 16px; margin-bottom: 6px; }
.author-box p { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 2; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.post-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; color: var(--muted); font-size: 13px; }
.post-share a, .post-share button { padding: 8px 16px; border-radius: 18px; border: 1px solid var(--line); background: none;
  color: var(--nav); font: inherit; font-size: 13px; cursor: pointer; }
.post-share a:hover, .post-share button:hover { border-color: var(--accent); color: var(--ink); }
.post-section { margin-top: 56px; }
.post-section > h2 { font-size: 24px; margin-bottom: 20px; }

@media (max-width: 1080px) { .post-layout { grid-template-columns: 1fr; } .post-aside { position: static; order: -1; }
  .aside-cta { display: none; } .toc ol { columns: 2; display: block; } .toc li { margin-bottom: 6px; } }
@media (max-width: 860px) { .b-featured { grid-template-columns: 1fr; } }
@media (max-width: 759px) {
  .blog-hero { padding: 22px 16px 4px; } .blog-wrap { padding: 12px 16px 70px; }
  .post-head { padding: 18px 16px 0; } .post-layout { padding: 0 16px 60px; margin-top: 22px; }
  .post-body { font-size: 16px; line-height: 2.15; } .toc ol { columns: 1; }
  .mid-cta { flex-direction: column; text-align: center; } .mid-cta .explore-button { width: 100%; justify-content: center; }
  .key-points { padding: 18px 18px; } .author-box { padding: 18px; }
}
.post-body figure { margin: 26px 0; } .post-body img { display: block; max-width: 100%; height: auto; border-radius: 18px; margin: 0 auto; }
.post-body figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
