/* The blog — only what site.css doesn't already have. Generated pages: scripts/blog/build.mjs */
.post-cover { margin-top: -8px; }
.post-cover img { display: block; width: 100%; max-width: 980px; height: auto; border-radius: 28px; box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -40px rgb(0 0 0 / .5); }
.post-body { padding-top: 40px; }
.post-body .prose + .post-wide, .post-body .post-wide + .prose { margin-top: 26px; }
.post-wide { max-width: 980px; }
.post-body .prose { max-width: 760px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.prose th, .prose td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 700; }
.prose td { color: var(--muted); }
.prose td.num, .prose th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose tfoot td { color: var(--text); font-weight: 700; background: var(--surface); }
.prose .note { padding: 14px 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--muted); }
.prose .key { padding: 18px 22px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); }
.prose .key b { color: var(--accent-ink); }
.prose .src { font-size: 13px; color: var(--faint); }
.prose blockquote { margin: 0; padding: 4px 18px; border-inline-start: 3px solid var(--accent); color: var(--text); }
.prose figure { margin: 0; }
.prose figure img { width: 100%; height: auto; border-radius: 18px; }
.prose figcaption { margin-top: 8px; font-size: 13px; color: var(--faint); }
.download { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.download b { display: block; color: var(--text); }
.download small { color: var(--faint); }
.download .btn { margin-inline-start: auto; white-space: nowrap; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.post-card { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.post-card img, .post-card-blank { display: block; width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; }
.post-card-blank { display: grid; place-items: center; background: var(--surface-2); }
.post-card-body { display: grid; gap: 8px; align-content: start; padding: 18px 20px 22px; }
.post-card-body small { color: var(--faint); font-size: 13px; }
.post-card-body b { font-size: 19px; font-weight: 900; line-height: 1.6; color: var(--text); }
.post-card-body span { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.post-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.post-list a { color: var(--text); font-weight: 500; }
.post-list a:hover { color: var(--accent-ink); }
.post-list small { color: var(--faint); white-space: nowrap; }
.post-cluster { padding-block: 28px; }
@media (max-width: 640px) {
  .post-cover img { border-radius: 18px; }
  .prose table { font-size: 14px; display: block; overflow-x: auto; }
  .download { flex-wrap: wrap; }
  .download .btn { margin-inline-start: 0; }
  .post-list li { flex-direction: column; gap: 2px; }
}
/* the costing table on a phone: each line becomes a small card (name and amount, then price and cost) */
@media (max-width: 640px) {
  .prose table.costing, .prose table.costing tbody, .prose table.costing tfoot { display: block; overflow: visible; }
  .prose table.costing thead { display: none; }
  .prose table.costing tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .prose table.costing td { padding: 0; border: 0; }
  .prose table.costing td:nth-child(1) { color: var(--text); font-weight: 700; }
  .prose table.costing td:nth-child(2) { text-align: end; }
  .prose table.costing td:nth-child(3) { font-size: 13px; color: var(--faint); }
  .prose table.costing td:nth-child(4) { text-align: end; color: var(--text); }
  .prose table.costing tfoot tr { grid-template-columns: 1fr auto; }
  .prose table.costing tfoot td[colspan] { grid-column: 1; }
}
@media (max-width: 640px) {
  .prose table.costing tfoot tr { background: var(--surface); }
  .prose table.costing tfoot td { background: transparent; }
}
