/* =====================================================================
   OSE · Blog pages · styles/pages/blog.css
   ---------------------------------------------------------------------
   Loaded by /blog/ and every /blog/<slug>/, after styles/pages/inner.css.
   Page layout only: semantic and component tokens, private knobs --_.
   Static pages: no scenes, no reveal animations (no motion.js).

   /blog/          page header (--lg) · the posts, newest first:
                   .blog-list    a list of blog cards (card.css +
                                 blog-card.css): one per row on phones,
                                 two halves from 48em (6 + 6 of the
                                 12-column grid, like the home page's
                                 "Từ blog" strip). Each card stretches to
                                 its row, so neighbours line up.
   /blog/<slug>/   <article>: the page header (title, lead, a facts row
                   with the date and the draft badge), then the body in
                   .prose (68ch, left on the page grid), then:
                   .post-figure  a figure that is not a bare image (the
                                 labelled planet row): set between two
                                 hairlines instead of a box, its content
                                 on the text column's left edge.
                   .post-end     the article's footer: a hairline across
                                 the text column, a mono line of facts,
                                 one sentence in the H3 role, then
                                 "Đăng ký tư vấn" and the way back to
                                 /blog/.
   Aurora          none here: the focus ring and link hovers carry it.
   ===================================================================== */

@layer page {
  /* ---- /blog/ · the list -------------------------------------------- */
  .blog-list {
    display: grid;
    gap: var(--layout-gap);
    padding: 0;
    list-style: none;
  }

  @media (min-width: 48em) {
    .blog-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .blog-list__item {
    display: grid;
    min-inline-size: 0;
  }

  /* ---- /blog/<slug>/ · a figure between hairlines -------------------- */
  .post-figure {
    display: grid;
    gap: var(--space-stack-sm);
    margin-block: var(--prose-figure-space);
    padding-block: var(--space-stack-lg);
    border-block: var(--border-width-hairline) solid var(--color-border);
  }

  /* The labelled planet row centres itself; on the page grid it starts on
     the text's left edge, like the caption under it. */
  .post-figure .planet-row {
    margin-inline: var(--space-none);
  }

  /* ---- /blog/<slug>/ · the end of the article ------------------------ */
  .post-end {
    display: grid;
    gap: var(--space-stack-sm);
    max-inline-size: var(--prose-measure);
    margin-block-start: var(--space-stack-2xl);
    padding-block-start: var(--space-stack-lg);
    border-block-start: var(--border-width-hairline) solid var(--color-border);
  }

  .post-end__meta {
    color: var(--color-text-muted);
    font: var(--text-data);
    letter-spacing: var(--text-data-tracking);
  }

  .post-end__text {
    max-inline-size: var(--layout-measure);
    color: var(--color-text);
    font: var(--text-h3);
    letter-spacing: var(--text-h3-tracking);
    text-wrap: balance;
  }

  .post-end__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-inline-md);
    margin-block-start: var(--space-stack-xs);
  }
}
