/* Blog articles (tools/blog.py). Builds on site.css tokens; light and dark. */
.blog article { font-size: 18px; line-height: 1.7; }
.blog article p, .blog article li { max-width: 68ch; }
.blog .crumbs { margin: 24px 0 0; }
.blog .crumbs a { color: var(--muted); }
.blog .eyebrow { margin-top: 18px; }
.blog .byline { margin: -4px 0 24px; }
.blog h2 { scroll-margin-top: 16px; }
.blog h3 { scroll-margin-top: 16px; }
.blog article ul, .blog article ol { padding-left: 24px; }
.blog article li { margin: 6px 0; }

.blog .toc { border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; margin: 20px 0 28px; background: var(--card); }
.blog .toc-title { font-weight: 800; margin: 0 0 4px; }
.blog .toc ol { margin: 0; padding-left: 22px; font-size: 16px; }
.blog .toc li { margin: 3px 0; }

.blog .table { overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.blog table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.blog th, .blog td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.blog thead th { background: var(--soft); font-weight: 800; white-space: nowrap; }
.blog tbody th { font-weight: 700; }
.blog tbody tr:last-child th, .blog tbody tr:last-child td { border-bottom: 0; }

.blog figure { margin: 24px 0 28px; }
.blog figure video, .blog figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line);
  background: #f4f1ea; box-shadow: var(--shadow); }
.blog figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.blog .note p { margin: 6px 0; }
.blog .app-card { border-color: var(--amber); background: var(--amber-soft); }
.blog .app-card .eyebrow-sm { font-weight: 800; color: var(--amber-text); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 0; }
.blog .app-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.blog .related { margin-top: 48px; border-top: 1px solid var(--line); }
.blog .post-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.blog .post-list a { display: flex; flex-direction: column; gap: 6px; height: 100%; color: var(--ink); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding-bottom: 14px; }
.blog .post-list a:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.blog .post-list a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.blog .post-list img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.blog .post-list .t { font: 600 18px/1.3 var(--display); padding: 6px 14px 0; }
.blog .post-list .d { padding: 0 14px; line-height: 1.45; }

@media (max-width: 520px) {
  .blog article { font-size: 17px; }
  .blog th, .blog td { padding: 8px 9px; font-size: 14px; }
}
