/* blog.css — the blog / changelog layer for imanna.ai. Loads AFTER styles.css + pages.css and reuses
   their tokens (--bg/--bg2/--card/--card2/--border/--txt/--muted/--c1/--c2/--grad/--grad2) and chrome
   (.page-nav, .page-hero, .page-sec, .page-prose, .btn, .foot-*). Adds ONLY what a post list and a
   long-form article body need that the marketing sections did not: a card list, article typography,
   the quotable "short version" block, and the changelog rail.

   No new visual language: a blog that looks like a different product reads as a different product. */

/* ===== Post list ===== */
.post-list{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
/* Thumb + text side by side. overflow:hidden clips the artwork to the card's radius, which is what lets
   the SVG bleed to the edge instead of sitting in a letterboxed grey box. */
.post-card{background:var(--card);border:1px solid var(--border);border-radius:18px;overflow:hidden;transition:border-color .2s,transform .2s;display:grid;grid-template-columns:220px 1fr;align-items:stretch}
.post-card:hover{border-color:var(--c2);transform:translateY(-2px)}
.post-card-in{padding:22px 26px}
/* The thumbnail is decorative and duplicates the title link, so it is removed from the tab order and the
   a11y tree (tabindex=-1 + aria-hidden on the anchor) — a keyboard user should not tab the same
   destination twice, and a screen reader should not hear an unlabelled link. */
.post-thumb{display:block;position:relative;min-height:150px;border-right:1px solid var(--border);background:#0B1120}
.post-thumb .post-art{position:absolute;inset:0;width:100%;height:100%;display:block}
.post-card h2{font-family:'Sora','Inter',sans-serif;font-size:21px;font-weight:800;letter-spacing:-.4px;line-height:1.3;margin:10px 0 8px}
.post-card h2 a{color:var(--txt);text-decoration:none}
.post-card h2 a:hover{color:var(--c1)}
.post-card p{color:var(--muted);font-size:15.5px;line-height:1.7;margin:0}
.post-more{display:inline-block;margin-top:14px;font-size:14px;font-weight:700;color:var(--c1);text-decoration:none}
.post-more:hover{color:var(--c2)}

/* Date + version row. Tabular figures so a column of dates lines up instead of shimmering. */
.post-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--dim);font-variant-numeric:tabular-nums}
.post-chip{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--c1);background:rgba(34,211,238,.1);border:1px solid rgba(34,211,238,.28);border-radius:999px;padding:3px 10px}

/* ===== Post page ===== */
.post-hero{padding-bottom:26px}
.post-hero .post-meta{justify-content:center;margin-bottom:14px}
.post-hero h1{font-size:clamp(28px,4.6vw,44px)}
/* Hero artwork: a fixed 3:1 band under the lead. aspect-ratio keeps it from jumping as the SVG loads. */
.post-hero-art{margin:34px auto 0;max-width:820px;border:1px solid var(--border);border-radius:18px;overflow:hidden;background:#0B1120;aspect-ratio:3/1}
.post-hero-art .post-art{display:block;width:100%;height:100%}

/* ===== Register CTA — on EVERY post, rendered by the template ===== */
.post-cta{margin:46px 0 0;padding:28px 30px;border:1px solid var(--c2);border-radius:18px;background:linear-gradient(180deg,rgba(59,130,246,.13),var(--card));text-align:center}
.post-cta h2{font-family:'Sora','Inter',sans-serif;font-size:21px;font-weight:800;letter-spacing:-.4px;margin:0 0 10px;color:var(--txt)}
.post-cta p{color:var(--muted);font-size:16px;line-height:1.7;max-width:460px;margin:0 auto 20px}
.post-cta .btn{padding:13px 26px;font-size:15px}
.post-cta-fine{font-size:13px;color:var(--dim);margin:16px auto 0}
.post-body{padding-top:8px}
.post-body h2{font-family:'Sora','Inter',sans-serif;font-size:clamp(21px,2.6vw,27px);font-weight:800;letter-spacing:-.5px;line-height:1.25;margin:38px 0 14px;color:var(--txt)}
.post-body h3{font-family:'Sora','Inter',sans-serif;font-size:18px;font-weight:700;letter-spacing:-.3px;margin:28px 0 10px;color:var(--txt)}
.post-body ul,.post-body ol{color:var(--muted);font-size:16.5px;line-height:1.8;margin:0 0 18px;padding-left:22px}
.post-body li{margin-bottom:8px}
.post-body li::marker{color:var(--c1)}
.post-body blockquote{margin:24px 0;padding:16px 20px;border-left:3px solid var(--c2);background:var(--bg2);border-radius:0 12px 12px 0}
.post-body blockquote p{margin:0;color:var(--txt)}
.post-body hr{border:0;border-top:1px solid var(--border);margin:34px 0}
.post-body code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;background:var(--bg2);border:1px solid var(--border);border-radius:6px;padding:1px 6px;color:var(--c1)}
/* Code blocks scroll INSIDE their own box — a long line must never make the page scroll sideways. */
.post-body pre{background:var(--bg2);border:1px solid var(--border);border-radius:12px;padding:16px 18px;overflow-x:auto;margin:0 0 20px}
.post-body pre code{background:none;border:0;padding:0;color:var(--txt);font-size:13.5px;line-height:1.65}
.post-back{margin-top:40px;padding-top:22px;border-top:1px solid var(--border)}
.post-tags{margin-top:28px;font-size:13px;color:var(--dim)}
.post-tags span{display:inline-block;background:var(--bg2);border:1px solid var(--border);border-radius:999px;padding:3px 10px;margin-right:6px;color:var(--muted)}

/* ===== "The short version" — the quotable block =====
   These are the facts_* lines: each is written to be true on its own so an answer engine can lift one
   sentence without mangling it. Given visual weight because a reader skimming wants exactly this too. */
.post-facts{background:linear-gradient(180deg,rgba(59,130,246,.1),var(--card));border:1px solid var(--c2);border-radius:16px;padding:22px 26px;margin:0 0 34px}
.post-facts h2{font-family:'Inter',sans-serif;font-size:12px;font-weight:800;letter-spacing:1.6px;text-transform:uppercase;color:var(--c1);margin:0 0 12px}
.post-facts ul{margin:0;padding-left:20px;font-size:16px;line-height:1.75;color:var(--txt)}
.post-facts li{margin-bottom:8px}
.post-facts li::marker{color:var(--c1)}

/* ===== Changelog rail ===== */
.cl-list{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:0}
.cl-row{display:grid;grid-template-columns:150px 1fr;gap:26px;padding:28px 0;border-top:1px solid var(--border)}
.cl-row:first-child{border-top:0}
.cl-ver{display:flex;flex-direction:column;gap:8px;align-items:flex-start;font-size:13px;color:var(--dim);font-variant-numeric:tabular-nums}
.cl-body h2{font-family:'Sora','Inter',sans-serif;font-size:19px;font-weight:800;letter-spacing:-.35px;line-height:1.3;margin:0 0 8px}
.cl-body h2 a{color:var(--txt);text-decoration:none}
.cl-body h2 a:hover{color:var(--c1)}
.cl-body p{color:var(--muted);font-size:15.5px;line-height:1.7;margin:0 0 12px}
.cl-body ul{margin:0;padding-left:20px;color:var(--muted);font-size:15px;line-height:1.7}
.cl-body li{margin-bottom:6px}
.cl-body li::marker{color:var(--c1)}

@media(max-width:700px){
  /* The thumb goes full-width ABOVE the text rather than shrinking to an unreadable sliver. */
  .post-card{grid-template-columns:1fr}
  .post-card-in{padding:20px}
  .post-thumb{min-height:0;aspect-ratio:3/1;border-right:0;border-bottom:1px solid var(--border)}
  .post-facts{padding:18px 20px}
  .post-cta{padding:22px 20px}
  /* The version rail stacks above the entry rather than squeezing into an unreadable column. */
  .cl-row{grid-template-columns:1fr;gap:12px}
  .cl-ver{flex-direction:row;align-items:center;gap:10px}
}
