/* Blog index (/blog/) and blog posts. Shared design comes from site.css. */

/* Index: post cards in a grid */
.post-list .grid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; transition: border-color .15s; }
.post-card:hover { border-color: var(--h-blue); }
.post-card-title { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.post-card-sum { font-size: 15px; color: var(--h-text-2); }
.post-card .post-meta { margin-top: auto; padding-top: 8px; }
.post-meta { font-size: 14px; color: var(--h-text-3); }

/* Post: one centred reading column for the head and the article */
.post-wrap { max-width: 74ch; margin-left: auto; margin-right: auto; }
.post-head .col { padding-top: 72px; }
.post-head .eyebrow { margin: 20px 0 0; }
.post-head h1 { max-width: none; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; }
.post-head .post-meta { margin: 16px 0 0; }
.post-back { font-size: 14px; color: var(--h-text-3); }
.post-back:hover { color: var(--h-blue); }
.post .lede { max-width: none; font-size: 19px; color: var(--h-ink); }
.post .code { margin-top: 16px; }
.post .table-wrap { margin-top: 20px; }
.post figure { margin: 28px 0 0; }
.post figcaption { margin-top: 10px; font-size: 14px; color: var(--h-text-3); }
.post figure img { display: block; width: 100%; height: auto; border: 1px solid var(--h-card-line); border-radius: 12px; }
.post-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.post-cta a.btn { text-decoration: none; }
.post-cta .btn-p { color: #fff; }
.post-cta .btn-o { color: var(--h-ink); }

/* Outcome chips: caught / survived */
.verdict { display: inline-block; margin-top: 10px; padding: 2px 10px; border-radius: 999px; font: 500 12.5px/1.6 var(--h-mono); border: 1px solid; }
.verdict.good { color: var(--h-ok-ink); background: #EAF7EF; border-color: #C5E9D3; }
.verdict.bad { color: var(--h-bad-ink); background: #FDEEEE; border-color: #F4CACA; }
.verdicts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.verdicts .verdict { margin: 0; }

/* Diagram: the four steps of a check */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; padding: 8px; border-radius: 18px; background: var(--h-tray); border: 1px solid var(--h-tray-line); font-size: 14px; line-height: 1.5; }
.step { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--h-card-line); }
.step-n { font: 500 11px var(--h-mono); letter-spacing: .08em; color: var(--h-text-3); }
.step-t { margin-top: 6px; color: var(--h-ink); }
.step.score { border-color: var(--h-blue); }
.step.score .step-n { color: var(--h-blue); }

/* Example flows with what the check found */
.post-cards { margin-top: 20px; display: grid; gap: 8px; }
.case { padding: 20px 22px; }
.post .case h3 { margin: 0; }
.case p { font-size: 15px; }

/* Strengths of the approach */
.good-note { margin-top: 10px; padding: 14px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--h-card-line); border-left: 3px solid var(--h-blue); }
.post p + .good-note { margin-top: 16px; }

/* Dark mock of the app's result dialog */
.mock { background: var(--h-code-bg); border-radius: 12px; overflow: hidden; font-size: 14px; color: var(--h-code-text); box-shadow: 0 12px 30px rgba(10, 20, 60, .12); }
.mock-head { padding: 16px 18px; border-bottom: 1px solid var(--h-code-line); display: flex; align-items: center; gap: 10px; }
.mock-icon { color: var(--h-code-head); }
.mock-title, .mock strong { font-weight: 600; color: #fff; }
.mock-dim { font-size: 12.5px; color: var(--h-code-dim); }
.mock-body { padding: 18px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock-stat { border: 1px solid var(--h-code-line); border-radius: 6px; padding: 10px; min-width: 0; }
.mock-label { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; color: var(--h-code-dim); overflow-wrap: anywhere; }
.mock-val { margin-top: 4px; font-size: 18px; color: var(--h-code-dim); }
.mock .ok { color: var(--h-pass); }
.mock .bad { color: var(--h-fail); }
.mock-score { margin-top: 16px; display: flex; align-items: center; gap: 14px; }
.mock-pct { font-size: 30px; font-weight: 700; color: var(--h-code-head); }
.mock-gap { margin-top: 16px; }
.mock-list { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.mock-fix { margin: 4px 0 0 18px; font: 12.5px var(--h-mono); color: var(--h-code-text); overflow-wrap: anywhere; }
.mock .k { color: var(--h-code-key); }
.mock .s { color: var(--h-code-val); }
.mock-foot { padding: 12px 18px; border-top: 1px solid var(--h-code-line); display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--h-code-dim); }
.mock-grow { flex: 1; }
.mock-btn { border: 1px solid var(--h-code-line); border-radius: 4px; padding: 4px 10px; color: #fff; }
.mock-btn.primary { background: var(--h-blue); border-color: var(--h-blue); }

@media (max-width: 640px) {
    .post-head .col { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    .post-card { transition: none; }
}
.post .code .kw { color: var(--h-code-key); }
