/* ============================================================
   CASHEENO — blog article
   Page shell, primitives, the post card, the topic chips and the pager all
   come from cs-ui.css: those are shared with the home page and the category
   and author archives, so they cannot live in a page-scoped stylesheet.
   ============================================================ */

.cs-shell--narrow { max-width: 760px; }

/* ---------- article ---------- */
.cs-article__hero .cs-post__meta { margin-bottom: 1.1rem; }
.cs-article__title { max-width: 22ch; margin-bottom: 1.1rem; }
.cs-article__lede { max-width: 62ch; margin-bottom: 1.4rem; }
.cs-article__by { margin: 0; font-size: .88rem; color: var(--cs-fg-dim); }

.cs-article { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.cs-article__figure {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-r-lg);
  overflow: hidden;
  background: var(--cs-bg-soft);
}
.cs-article__figure img { width: 100%; height: auto; display: block; }
.cs-article__figure img[src$=".svg"] { padding: clamp(1rem, 3vw, 2rem); }

/* The article column is already narrow, so let the prose fill it. */
.cs-article .cs-prose { max-width: none; font-size: 1.04rem; }

.cs-article__foot {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--cs-line);
}

.cs-related { border-top: 1px solid var(--cs-line); }

/* The byline now links to the author archive and shows an "Updated" date when
   the post has been revised - both are signals a reader and a crawler use. */
.cs-article__by a { color: var(--cs-fg-muted); border-bottom: 1px solid transparent; }
.cs-article__by a:hover { color: var(--cs-brand-text); border-bottom-color: currentColor; }
.cs-article__updated { display: block; margin-top: .3rem; font-size: .8rem; opacity: .8; }

.cs-article__figure figcaption {
  padding: .7rem 1rem .85rem;
  border-top: 1px solid var(--cs-line);
  font-size: .82rem;
  line-height: 1.5;
  color: var(--cs-fg-dim);
}
