.blog-page { width: min(1180px, calc(100% - 32px)); }
.blog-page .page-card { box-shadow: 0 12px 40px #162c1910; background: #fff; }
.blog-page .hero { padding: clamp(24px, 5vw, 64px); background: #e8f0e6; }
.blog-page .hero h1 { max-width: 24ch; line-height: 1.15; text-wrap: balance; }
.blog-page .lead { max-width: 65ch; line-height: 1.65; }
.blog-page .content { padding: clamp(20px, 4vw, 48px); }
.blog-page a { text-underline-offset: .2em; }
.blog-page :focus-visible { outline: 3px solid #0f6b44; outline-offset: 4px; }
.blog-page [hidden] { display: none !important; }
.blog-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .45fr) auto; gap: 10px 16px; margin-bottom: 40px; }
.blog-tools label { font-size: .9rem; font-weight: 650; }
.blog-tools label[for="blog-query"] { grid-column: 1; grid-row: 1; }
.blog-tools label[for="blog-category"] { grid-column: 2; grid-row: 1; }
.blog-tools input, .blog-tools select, .blog-tools button { min-width: 0; min-height: 48px; border: 1px solid #b7c9ba; border-radius: 12px; padding: 12px; font: inherit; color: #182026; background: #fff; grid-row: 2; }
.blog-tools button { cursor: pointer; background: #edf4ed; }
.blog-tools [role="status"] { grid-column: 1 / -1; font-size: .9rem; margin: 0; color: #526057; }
.blog-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: start; }
.blog-archive { position: sticky; top: 24px; font-size: .95rem; }
.blog-archive h2 { margin-top: 0; font-size: 1rem; }
.blog-archive a { display: block; padding: 12px 0; line-height: 1.5; }
.blog-archive hr { border: 0; border-top: 1px solid #dce5dc; margin: 18px 0; }
.blog-month { font-size: 1rem; text-transform: capitalize; margin: 0 0 20px; scroll-margin-top: 24px; }
.blog-card { border: 1px solid #dce5dc; padding: clamp(20px, 3vw, 32px); margin-bottom: 24px; border-radius: 20px; background: #fafcf8; }
.blog-card h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.3; margin: 12px 0; text-wrap: balance; }
.blog-card h3 a { color: #182026; text-decoration: none; }
.blog-card h3 a:hover { text-decoration: underline; }
.blog-card p { line-height: 1.7; }
.blog-meta { color: #41644b; font-size: .85rem; }
.blog-read { display: inline-block; padding: 10px 0; font-weight: 650; }
.blog-byline { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 32px; color: #526057; font-size: .9rem; }
.blog-prose { max-width: 68ch; min-width: 0; font-size: 1.125rem; line-height: 1.85; overflow-wrap: anywhere; }
.blog-prose h2 { font-size: 1.55rem; line-height: 1.3; margin-top: 2em; scroll-margin-top: 24px; }
.blog-prose h2:first-child { margin-top: 0; }
.blog-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-prose table { display: block; max-width: 100%; overflow-x: auto; }
.blog-prose blockquote { margin: 24px 0; border-left: 3px solid #0f6b44; padding: 12px 24px; background: #edf4ed; }
.blog-related { margin-top: 40px; padding-top: 12px; border-top: 1px solid #dce5dc; }
.blog-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
  .blog-page { width: calc(100% - 20px); }
  .blog-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .blog-archive { position: static; background: #f4f7f3; padding: 20px; border-radius: 14px; }
  .blog-tools { grid-template-columns: minmax(0, 1fr); }
  .blog-tools label[for="blog-category"], .blog-tools input, .blog-tools select, .blog-tools button { grid-column: 1; grid-row: auto; }
  .blog-tools label[for="blog-category"] { grid-row: 3; }
  .blog-prose { font-size: 1.0625rem; }
}
@media print { .blog-tools, .blog-archive, .actions, .links { display: none; } .blog-layout { display: block; } .blog-page { width: 100%; } }
