/* Editorial styles for /blog/ pages. Scoped to body.blogpost (articles) and
 * body.bloglist (index) so the main app and tool landings stay untouched.
 * Loaded AFTER styles.css, so it overrides the landing-derived classes the
 * blog markup reuses (.seo-h1, .seo-lead, .about, .faq, .related-list). */

/* ---------------- shared ---------------- */
body.blogpost main,
body.bloglist main { max-width: 720px; }

/* Language / breadcrumb nav under the brand header */
.post-langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 0 0 28px;
}
.post-langs .home { margin-right: auto; color: var(--muted); text-decoration: none; }
.post-langs .home:hover { color: var(--ink); }
.post-langs a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 11px;
  transition: border-color .15s ease, color .15s ease;
}
.post-langs a:hover { color: var(--ink); border-color: var(--accent); }
.post-langs strong {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 3px 11px;
  font-weight: 600;
}

/* Decorative cover band (gradient + faint waveform) — no image needed */
.post-cover,
.post-card .card-cover {
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-glow) 0%, transparent 55%),
    radial-gradient(120% 160% at 100% 120%, #0a2426 0%, transparent 55%),
    linear-gradient(135deg, #14101f, #0d0d10);
  position: relative;
  overflow: hidden;
}
.post-cover::after,
.post-card .card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--accent-soft) 0 3px, transparent 3px 13px);
  -webkit-mask-image: linear-gradient(180deg, transparent 25%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 25%, #000 100%);
  opacity: .55;
}
.post-cover {
  height: 170px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 30px;
}

/* ---------------- article ---------------- */
.post-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
body.blogpost .post-title.seo-h1 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
body.blogpost .post-lead.seo-lead {
  font-size: 19px;
  line-height: 1.55;
  color: #c6c6cf;
  max-width: none;
  margin: 0 0 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  padding: 0 0 26px;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--border);
}
.post-meta .post-author { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; }
.post-meta .post-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}
.post-meta .dot { opacity: .4; }

/* Turn the reused landing ".about/.faq" blocks into flowing article prose */
body.blogpost .about,
body.blogpost .faq {
  border-top: none;
  margin-top: 40px;
  padding-top: 0;
  color: #c6c6cf;
}
body.blogpost .about h2,
body.blogpost .faq h2 {
  font-size: 24px;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0 0 14px;
}
body.blogpost .about p { font-size: 17px; line-height: 1.75; margin: 0 0 16px; }
body.blogpost .about .stem-types { font-size: 16.5px; line-height: 1.6; gap: 12px; margin-top: 16px; }
body.blogpost .about .stem-types li { position: relative; padding-left: 20px; }
body.blogpost .about .stem-types li::before { content: "–"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
body.blogpost .about .steps-list { gap: 14px; }
body.blogpost .about .steps-list li { font-size: 16px; line-height: 1.6; }
body.blogpost code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
}
body.blogpost .about a,
body.blogpost .faq a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color .15s ease;
}
body.blogpost .about a:hover,
body.blogpost .faq a:hover { border-bottom-color: var(--accent); }
body.blogpost .faq-item summary { font-size: 16px; }
body.blogpost .faq-item p { font-size: 15.5px; line-height: 1.65; }

/* Figures / illustrations inside articles */
body.blogpost .post-figure { margin: 30px 0; }
body.blogpost .post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
body.blogpost .post-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Cover that holds an illustration instead of the plain gradient */
.post-cover.has-art { height: auto; padding: 0; border: 1px solid var(--border); }
.post-cover.has-art::after { display: none; }
.post-cover.has-art img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

@media (max-width: 640px) {
  body.blogpost .post-title.seo-h1 { font-size: 32px; }
  body.blogpost .post-lead.seo-lead { font-size: 17px; }
  .post-cover { height: 120px; }
}

/* ---------------- index (post list) ---------------- */
body.bloglist .seo-h1 { font-size: 40px; letter-spacing: -1px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 34px 0 8px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card .card-cover { height: 124px; border-bottom: 1px solid var(--border); }
.post-card .card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; }
.post-card .card-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.post-card .card-title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.post-card .card-excerpt { font-size: 14px; line-height: 1.55; color: var(--muted); }
.post-card .card-more { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
