/* Blog pages share the marketing site's typography and color tokens. */
.blog-skip-link { position:fixed; top:8px; left:16px; transform:translateY(-180%); z-index:1001; padding:12px 20px; background:var(--purple); color:var(--text); border-radius:var(--radius-sm); }
.blog-skip-link:focus { transform:translateY(0); }
.blog-hero { padding-top:calc(var(--nav-h) + 80px); padding-bottom:64px; }
.blog-hero h1 { max-width:920px; margin:20px 0 24px; font-size:clamp(2.4rem,5.4vw,4.5rem); font-weight:800; line-height:1.1; letter-spacing:-.05em; }
.blog-lead { max-width:660px; color:var(--text-muted); font-size:1.1rem; line-height:1.8; }
.blog-hero-note { display:flex; gap:12px; align-items:center; margin-top:32px; color:var(--text-dim); font-size:.85rem; }
.blog-hero-note span { color:var(--purple-light); font-size:1.5rem; }
.blog-library { padding-bottom:64px; }
.blog-section-heading { display:flex; gap:16px; justify-content:space-between; align-items:center; padding:24px 0; border-top:1px solid var(--border); }
.blog-section-heading h2 { font-size:1.15rem; letter-spacing:-.02em; }
.blog-section-heading>span { color:var(--text-dim); font-size:.85rem; }
.blog-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.blog-card { min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--bg-card); }
.blog-card-image { display:block; overflow:hidden; aspect-ratio:16/9; background:var(--bg-surface); }
.blog-card-image img { display:block; width:100%; height:100%; object-fit:cover; transition:transform var(--transition); }
.blog-card:hover .blog-card-image img { transform:scale(1.025); }
.blog-card-copy { padding:28px; }
.blog-meta { display:flex; gap:16px; flex-wrap:wrap; align-items:center; color:var(--text-dim); font-size:.8rem; }
.blog-category { color:var(--purple-light); background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius-xl); padding:5px 12px; font-weight:600; }
.blog-card h2 { margin:18px 0 14px; font-size:clamp(1.3rem,2.1vw,1.7rem); line-height:1.4; letter-spacing:-.025em; }
.blog-card h2 a { color:var(--text); }
.blog-card h2 a:hover { color:var(--purple-light); }
.blog-card-copy>p { color:var(--text-muted); line-height:1.8; font-size:.95rem; }
.blog-read-link { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--border-subtle); margin-top:26px; padding-top:20px; color:var(--purple-light); font-weight:600; font-size:.9rem; }
.blog-read-link span { font-size:1.3rem; }
.blog-resource { display:flex; justify-content:space-between; gap:32px; align-items:center; padding-top:32px; padding-bottom:48px; margin-bottom:48px; border-top:1px solid var(--border); }
.blog-resource h2 { margin:12px 0; font-size:1.6rem; letter-spacing:-.03em; }
.blog-resource p:not(.label) { color:var(--text-muted); line-height:1.8; }
.blog-resource .btn { flex-shrink:0; }
.article-main { padding-top:calc(var(--nav-h) + 36px); padding-bottom:80px; }
.blog-breadcrumbs { display:flex; flex-wrap:wrap; gap:12px; color:var(--text-dim); font-size:.8rem; margin-bottom:36px; }
.blog-breadcrumbs a { color:var(--text-muted); }
.blog-breadcrumbs a:hover { color:var(--purple-light); }
.article-header { max-width:900px; margin-bottom:36px; }
.article-header h1 { margin:24px 0; font-size:clamp(2rem,4vw,3.4rem); line-height:1.18; letter-spacing:-.045em; font-weight:800; overflow-wrap:break-word; }
.article-header .blog-lead { max-width:750px; }
.article-cover { display:block; width:100%; height:auto; max-height:490px; object-fit:cover; border:1px solid var(--border); border-radius:var(--radius-lg); margin-bottom:56px; }
.article-layout { display:grid; grid-template-columns:240px minmax(0,1fr); gap:64px; align-items:start; }
.article-sidebar { position:sticky; top:calc(var(--nav-h) + 24px); min-width:0; }
.article-toc { border-left:1px solid var(--border); padding-left:20px; }
.article-toc summary { cursor:pointer; font-size:.8rem; font-weight:700; color:var(--text); letter-spacing:.04em; margin-bottom:16px; }
.article-toc nav { display:flex; flex-direction:column; gap:12px; max-height:calc(100dvh - var(--nav-h) - 110px); overflow-y:auto; scrollbar-width:thin; }
.article-toc a { color:var(--text-dim); font-size:.78rem; line-height:1.6; padding-right:8px; }
.article-toc a:hover, .article-toc a[aria-current="location"] { color:var(--purple-light); }
.article-content { min-width:0; max-width:760px; }
.article-prose { font-size:1rem; line-height:1.95; color:var(--text-muted); overflow-wrap:break-word; }
.article-prose h2, .article-prose h3 { color:var(--text); line-height:1.4; letter-spacing:-.025em; scroll-margin-top:calc(var(--nav-h) + 30px); }
.article-prose h2 { font-size:1.65rem; margin:52px 0 20px; }
.article-prose h2:first-child { margin-top:0; }
.article-prose h3 { font-size:1.15rem; margin:30px 0 12px; }
.article-prose p { margin:0 0 20px; }
.article-prose a { color:var(--purple-light); text-decoration:underline; text-underline-offset:4px; }
.article-prose ul, .article-prose ol { padding-left:24px; margin:20px 0; }
.article-prose ul { list-style:disc; }
.article-prose ol { list-style:decimal; }
.article-prose li { padding-left:6px; margin:10px 0; }
.article-prose strong { color:var(--text); font-weight:600; }
.article-prose blockquote { border-left:3px solid var(--purple); padding:22px 26px; margin:24px 0; border-radius:0 var(--radius) var(--radius) 0; background:var(--bg-card); color:var(--text); }
.article-prose blockquote p { margin:0; }
.blog-table-wrap { max-width:100%; overflow-x:auto; margin:24px 0; border:1px solid var(--border); border-radius:var(--radius); }
.article-prose table { width:100%; border-collapse:collapse; font-size:.9rem; }
.article-prose caption { text-align:left; padding:16px 20px; font-size:.8rem; color:var(--text-dim); }
.article-prose th, .article-prose td { padding:14px 20px; text-align:left; border-top:1px solid var(--border-subtle); }
.article-prose th { color:var(--text); background:var(--bg-card); }
.article-prose td:last-child { white-space:nowrap; }
.article-cta { margin-top:48px; padding:32px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); }
.article-cta h2 { font-size:1.7rem; line-height:1.3; letter-spacing:-.03em; margin:14px 0; }
.article-cta p:not(.label) { color:var(--text-muted); line-height:1.8; }
.article-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.blog-back-link { display:inline-flex; gap:12px; margin-top:32px; color:var(--purple-light); font-size:.9rem; }
.blog-page :focus-visible { outline:2px solid var(--purple-light); outline-offset:5px; }
@media (max-width:900px) { .article-layout { grid-template-columns:200px minmax(0,1fr); gap:32px; } }
@media (max-width:768px) {
  .blog-hero { padding-top:calc(var(--nav-h) + 48px); padding-bottom:40px; }
  .blog-grid { grid-template-columns:1fr; }
  .blog-section-heading>span { display:none; }
  .blog-resource { flex-direction:column; align-items:flex-start; gap:24px; }
  .article-layout { grid-template-columns:1fr; gap:32px; }
  .article-sidebar { position:static; }
  .article-toc { padding:18px 20px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-surface); }
  .article-toc summary { margin-bottom:0; }
  .article-toc[open] summary { margin-bottom:16px; }
  .article-toc nav { max-height:none; }
  .article-cover { margin-bottom:28px; }
  .article-prose { font-size:.96rem; }
  .article-prose h2 { font-size:1.4rem; }
  .article-main { padding-top:calc(var(--nav-h) + 24px); }
}
@media (max-width:480px) { .blog-card-copy { padding:22px; } .article-cta { padding:24px; } .article-actions { flex-direction:column; align-items:stretch; } .article-actions .btn { text-align:center; justify-content:center; } .blog-meta { gap:10px; } }
