/* Blog follows the profile palette, with a quieter editorial reading layout. */
.blog-index-header { padding: 10px 0 20px; border-bottom: 1px solid var(--profile-border); }
.blog-index-header h1 { margin: 0; }
.blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
.blog-card { display: block; min-width: 0; padding: 0; border: 0; }
.blog-card-cover { display: block; overflow: hidden; border: 1px solid #e4e7e8; border-radius: 10px; background: #f5f3ec; }
.blog-card-cover img { display: block; width: 100%; height: auto; margin: 0; }
.blog-card-copy { margin-top: 14px; }
.blog-card h2, .blog-card h3 { margin: 0; padding: 0; border: 0; color: var(--profile-navy); font-size: 25px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.blog-list-compact { margin-top: 18px; }

.blog-post { max-width: 800px; margin: 0 auto; }
.blog-post-header { margin: 31px 0 25px; }
.blog-post-header h1 { margin: 16px 0 14px; font-size: clamp(36px, 4.5vw, 55px); line-height: 1.1; letter-spacing: -.04em; }
.blog-post-cover { margin: 28px 0 38px; }
.blog-post-cover img { display: block; width: 100%; height: auto; border: 1px solid #e4e7e8; border-radius: 12px; }
.blog-prose { max-width: 680px; margin: 0 auto; color: #34435d; font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
.blog-prose p { margin: 0 0 1.4em; font-size: inherit; line-height: inherit; }
.blog-prose h2, .blog-prose h3, .blog-prose h4 { margin: 1.9em 0 .8em; padding: 0; border: 0; color: var(--profile-navy); font-size: 25px; line-height: 1.5; scroll-margin-top: 24px; }
.blog-prose h3 { font-size: 21px; }
.blog-prose h4 { font-size: 18px; }
.blog-prose strong { color: #233a58; }
.blog-prose a { text-decoration: underline; text-underline-offset: 3px; }
.blog-prose ul, .blog-prose ol { padding-left: 1.5em; margin: 0 0 1.4em; }
.blog-prose li { margin: .4em 0; }
.blog-prose blockquote { margin: 29px 0; padding: 14px 22px; border-left: 3px solid #376ac4; border-radius: 0 8px 8px 0; background: #f5f8fd; color: #3f5c7e; font-size: 18px; font-style: normal; }
.blog-prose blockquote p:last-child { margin-bottom: 0; }
.blog-prose code { padding: .15em .35em; border-radius: 4px; background: #eef3f9; color: #27466e; font-size: .85em; overflow-wrap: anywhere; }
.blog-prose pre { max-width: 100%; margin: 24px 0; padding: 19px 22px; overflow-x: auto; border: 1px solid #dce5f0; border-radius: 9px; background: #f7f9fc; color: #27466e; line-height: 1.7; }
.blog-prose pre code { padding: 0; border: 0; background: transparent; font-size: inherit; white-space: pre; overflow-wrap: normal; }
.blog-prose .highlight, .blog-prose div.highlighter-rouge .highlight { margin: 0; background: transparent; font-size: 14px; line-height: 1.7; }
.blog-prose .highlighter-rouge { margin: 24px 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.blog-prose .highlighter-rouge::before { content: none; }
.blog-prose .highlighter-rouge pre { margin: 0; }
.blog-prose .highlight .k, .blog-prose .highlight .kn, .blog-prose .highlight .kd { color: #7552a8; }
.blog-prose .highlight .s, .blog-prose .highlight .s1, .blog-prose .highlight .s2 { color: #0e7660; }
.blog-prose .highlight .c, .blog-prose .highlight .c1, .blog-prose .highlight .cm { color: #66758a; }
.blog-prose img, .blog-prose video { max-width: 100%; height: auto; border-radius: 8px; }
.blog-prose iframe { max-width: 100%; }
.blog-prose table { display: block; width: 100%; margin: 24px 0; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.blog-prose th, .blog-prose td { padding: 10px 14px; border: 1px solid #dce5f0; text-align: left; }
.blog-prose th { background: #f5f8fd; }
.blog-prose hr { margin: 32px 0; border: 0; border-top: 1px solid #dce5f0; }
.blog-section a:focus-visible, .blog-index a:focus-visible, .blog-post a:focus-visible { outline: 2px solid #376ac4; outline-offset: 5px; border-radius: 3px; }

@media (max-width: 700px) {
  .blog-list { grid-template-columns: 1fr; }
  .blog-post-header { margin-top: 25px; }
  .blog-post-cover { margin: 25px 0 30px; }
  .blog-prose { font-size: 16px; line-height: 1.95; }
  .blog-prose h2 { font-size: 23px; }
  .blog-prose pre { padding: 16px; }
  .blog-prose blockquote { padding: 13px 17px; font-size: 17px; }
}
@media print {
  .blog-post-cover { max-width: 480px; }
  .blog-prose { max-width: none; font-size: 11pt; }
}
