/* BLOG: article list (blog.html) and article pages (built from posts/*.html by build.js) */

/* Article list */
.post-list { margin-top: 46px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; text-align: left; }
.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--black); }
.post-card-img { aspect-ratio: 16 / 9; background: #fff; border-bottom: 2px solid var(--black); display: flex; align-items: center; justify-content: center; padding: 18px; }
.post-card-img { position: relative; }
.post-card-img img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.2px; }
.post-card p { font-size: 15px; line-height: 1.55; color: var(--ink); flex: 1; }
.post-kicker { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: #5a5a3a; }

/* Article page */
.post { max-width: 860px; margin: 0 auto; text-align: left; }
.post .back { margin-top: 0; }
.post-head { margin-top: 26px; }
.post-head h1 { font-size: clamp(32px, calc(20px + 1.7vw), 46px); line-height: 1.08; letter-spacing: -1.2px; margin-top: 18px; }
.post-meta { font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: .4px; color: #2d4a57; margin-top: 16px; }
.post-lede { font-size: 18px; line-height: 1.6; color: var(--ink); margin-top: 18px; }
.post-hero { margin-top: 30px; aspect-ratio: 16 / 8; background: #fff; display: flex; align-items: center; justify-content: center; padding: 26px; }
.post-hero { position: relative; }
.post-hero img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; }
.toc { margin-top: 30px; padding: 20px 26px; }
.toc strong { font-family: var(--label); font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; }
.toc ol { list-style: decimal; padding-left: 22px; margin-top: 10px; columns: 2 260px; column-gap: 34px; }
.toc li { font-size: 15px; line-height: 1.5; padding: 3px 0; break-inside: avoid; }
.toc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body { margin-top: 30px; padding: clamp(22px, 4vw, 44px); }
.post-body > * + * { margin-top: 16px; }
.post-body h2 { font-size: clamp(24px, calc(16px + 1vw), 30px); line-height: 1.2; letter-spacing: -.3px; margin-top: 44px; scroll-margin-top: 24px; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-family: var(--heading); font-weight: 800; font-size: 20px; line-height: 1.3; margin-top: 30px; }
.post-body p, .post-body li { font-size: 16.5px; line-height: 1.75; color: #10232c; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: 6px; }
.post-body strong { font-weight: 600; color: var(--black); }
.post-body a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.post-body code { font-family: Consolas, "Courier New", monospace; font-size: .95em; background: #fff; border: 1px solid rgba(0,0,0,.25); border-radius: 5px; padding: 1px 6px; }
.table-wrap { overflow-x: auto; border: 2px solid var(--black); border-radius: 12px; background: #fff; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body caption { caption-side: top; text-align: left; font-family: var(--label); font-weight: 600; font-size: 14px; padding: 12px 16px 0; }
.post-body th, .post-body td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(0,0,0,.15); }
.post-body td:first-child, .post-body th:first-child { white-space: nowrap; }
.post-body table { min-width: 520px; }
.post-body th { font-family: var(--label); font-weight: 600; background: #f3efc9; }
.post-body tr:last-child td { border-bottom: 0; }
.note { border: 2px solid var(--black); border-left-width: 8px; border-radius: 12px; padding: 14px 18px; background: #fff; }
.note.warn { border-left-color: #b8322a; }
.note p { font-size: 15.5px; line-height: 1.65; }
.post-cta { margin-top: 30px; padding: 26px; }
.post-cta h2 { font-size: 24px; }
.post-cta p { font-size: 15.5px; line-height: 1.6; margin-top: 8px; }
.post-cta .chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.post-cta .chips-row a { font-family: var(--label); font-weight: 600; font-size: 15px; padding: 7px 14px; border: 2px solid var(--black); border-radius: 10px; background: #fff; box-shadow: 2px 2px 0 var(--black); }
.post-cta .chips-row a:hover { background: var(--accent); }
.post-cta .hero-cta { margin-top: 20px; }
@media (max-width: 560px) {
  .post-body p, .post-body li { font-size: 16px; }
  .post-body th, .post-body td { padding: 8px 10px; font-size: 14px; }
}

/* Buying guide sections on product pages reuse the article styles */
.guide { margin-top: 34px; text-align: left; }
.guide h3:first-child { margin-top: 0; }
