/* ============ Blog-only styles (blog.html + blog-<slug>.html) ============
   Loaded after pages.css. Extends the shared .prose/.article styles with the
   blocks real posts need: tables, ordered lists, callouts, formula/scenario
   boxes and in-article CTAs. Colours come from the design-system tokens. */

/* post hero: real titles are longer than the sample one */
.phero h1.post-h1{font-size:clamp(34px,4.8vw,62px);line-height:1.06;max-width:24ch}
.post-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:13px;font-weight:600;margin-bottom:8px}

/* article column: ~80 characters per line at 17px */
.article.post,.article.post .prose{max-width:680px}
.post .prose{overflow-wrap:break-word}
.post .prose p,.post .prose li{font-size:17px;line-height:1.72}
.post .prose>p:first-child{font-size:19px}
.post .prose h2{font-size:26px;line-height:1.22;margin:48px 0 16px;scroll-margin-top:110px}
.post .prose h3{font-size:20px;line-height:1.3;margin:32px 0 10px;scroll-margin-top:110px}
.post .prose p{margin:0 0 18px}
.post .prose a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--accent-primary-tint)}
.post .prose a:hover{text-decoration-color:currentColor}
.post .prose a:focus-visible,.share a:focus-visible,.share button:focus-visible,.post-back:focus-visible{outline:2px solid var(--accent-primary);outline-offset:3px;border-radius:6px}
.post .prose em{font-style:italic}
.post .prose code{font-family:var(--font-mono);font-size:.88em;background:var(--bg-elevated);border-radius:6px;padding:2px 6px}
.post .prose pre{overflow-x:auto;background:var(--surface-banner);color:var(--white);border-radius:14px;padding:18px 20px;margin:24px 0;font-size:14px;line-height:1.6}
.post .prose pre code{background:none;padding:0;color:inherit}
.post .prose img{display:block;max-width:100%;height:auto;border-radius:16px;margin:28px auto}
.post .prose hr{border:0;border-top:1px solid var(--border-subtle);margin:40px 0}

/* lists */
.post .prose ul{margin:0 0 20px}
.post .prose ul li::before{top:11px}
.post .prose ol{margin:0 0 20px;padding-left:26px;display:flex;flex-direction:column;gap:10px}
.post .prose ol li{color:var(--text-secondary);padding-left:4px}
.post .prose ol li::marker{color:var(--accent-primary);font-weight:700}

/* tables scroll inside their own box instead of widening the page */
.post .tblwrap{margin:26px 0;border:1px solid var(--border-subtle);border-radius:16px;overflow-x:auto;-webkit-overflow-scrolling:touch;background:var(--bg-secondary)}
.post .tblwrap:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}
.post .tblwrap table{width:100%;min-width:560px;border-collapse:collapse;font-size:15px;line-height:1.5}
.post .tblwrap th{background:var(--bg-table-head);text-align:left;padding:13px 16px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-primary);border-bottom:1px solid var(--border-subtle);vertical-align:bottom}
.post .tblwrap td{padding:13px 16px;color:var(--text-secondary);border-top:1px solid var(--border-subtle);vertical-align:top}
.post .tblwrap tbody tr:first-child td{border-top:0}

/* key takeaways */
.post .takeaways{border:1px solid var(--accent-primary-tint);background:var(--accent-primary-wash);border-radius:20px;padding:26px 28px;margin:0 0 36px}
.post .prose .takeaways h2{margin:0 0 14px;font-size:20px}
.post .prose .takeaways ul{margin:0}

/* callouts, formula and scenario boxes */
.post .callout,.post .scenario,.post .formula{border-radius:16px;margin:26px 0;padding:20px 22px;border:1px solid var(--border-subtle)}
.post .callout{border-left:4px solid var(--accent-primary);background:var(--accent-primary-wash)}
.post .callout.success{border-left-color:var(--accent-success)}
.post .callout.warning{border-left-color:var(--accent-warning);background:var(--cc-gold-tint)}
.post .callout.danger{border-left-color:var(--color-destructive);background:var(--negative-wash)}
.post .scenario{background:var(--bg-table-head)}
.post .formula{background:var(--bg-table-head);text-align:center;overflow-x:auto}
.post .prose .formula p{font-family:var(--font-mono);font-size:16px;line-height:1.6;color:var(--accent-primary)}
.post .prose .bt{font-size:16px;font-weight:700;color:var(--text-primary);margin:0 0 8px}
.post .prose .formula .bt{font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);font-weight:600}
.post .callout>:last-child,.post .scenario>:last-child,.post .formula>:last-child{margin-bottom:0}

/* in-article CTA */
.post .pcta{margin:32px 0;padding:28px;border-radius:20px;text-align:center;background:var(--surface-banner);color:var(--white)}
.post .prose .pcta p{margin:0;color:var(--white);opacity:.92}
.post .prose .pcta strong{display:block;color:var(--white);opacity:1;font-size:20px;line-height:1.3;margin-bottom:8px}
.post .prose .pcta a{display:flex;width:fit-content;align-items:center;justify-content:center;min-height:46px;margin:18px auto 0;padding:0 20px;border-radius:12px;background:var(--white);color:var(--accent-primary);font-size:15px;font-weight:700;text-decoration:none}
.post .prose .pcta a:hover{background:var(--bg-elevated)}
.post .prose .pcta a:focus-visible{outline:2px solid var(--white);outline-offset:3px}

/* share row: 44px targets, copy-link is a real button */
.share a,.share button{width:44px;height:44px}
.share button{border-radius:11px;border:1px solid var(--border-subtle);display:flex;align-items:center;justify-content:center;color:var(--text-secondary);background:var(--bg-secondary);cursor:pointer;padding:0;font:inherit;transition:all .2s}
.share button:hover{border-color:var(--accent-primary);color:var(--accent-primary);background:var(--accent-primary-wash)}
.share .copied{font-family:inherit;font-size:13px;letter-spacing:0;text-transform:none;color:var(--accent-primary);font-weight:600;margin:0 0 0 4px}

/* blog index: visible focus ring on cards and chips */
.pcard2:focus-visible,.feat:focus-visible,.catchip:focus-visible{outline:2px solid var(--accent-primary);outline-offset:3px}

@media (max-width:680px){
  .phero h1.post-h1{font-size:clamp(30px,8.6vw,40px)}
  .post .prose h2{font-size:23px;margin-top:40px}
  .post .prose h3{font-size:19px}
  .post .takeaways{padding:22px 20px}
  .post .callout,.post .scenario,.post .formula{padding:18px}
  .post .prose .formula p{font-size:14.5px}
  .post .pcta{padding:24px 20px}
  .post .tblwrap table{font-size:14.5px}
  .article .hcover{margin-bottom:28px}
}
