/* Blog content only. Header, navigation, page surface and footer use the shared shell. */
.blog{padding:24px 0 48px;color:var(--ink);min-width:0}
.blog-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:32px}
.blog-head h1{font-size:28px;font-weight:600;line-height:1.5;letter-spacing:-.025em;margin:0}
.blog-head p{font-size:15px;color:var(--muted);line-height:1.6;margin:8px 0 0}
.blog-search{display:flex;align-items:center;gap:12px;min-width:0;width:240px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.blog-search svg{width:18px;height:18px;flex:none;color:var(--muted)}
.blog-search input{font:inherit;font-size:14px;min-width:0;width:100%;border:0;background:transparent;color:var(--ink);outline:none}
.blog-search:focus-within{outline:2px solid var(--ink);outline-offset:3px}
.blog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.blog-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;min-width:0;max-width:100%;padding:4px}
.blog-tabs::-webkit-scrollbar{display:none}
#blog-root .blog-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:none;box-sizing:border-box;min-height:44px;margin:0;padding:10px 20px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--ink);font:inherit;font-size:15px;font-weight:500;line-height:1.3;box-shadow:none;cursor:pointer;white-space:nowrap}
#blog-root .blog-tabs button[aria-pressed=true]{background:var(--button);color:var(--button-ink);border-color:var(--button)}
.blog-tabs .blog-category-icon{display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.blog-count{font-size:13px;color:var(--muted);white-space:nowrap;margin:0}
.blog :is(a,button):focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.blog-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;min-height:320px;padding:48px 24px;margin-top:24px;background:color-mix(in srgb,var(--ink) 3%,var(--bg));border-radius:16px}
.blog-empty h2{font-size:20px;font-weight:600;line-height:1.5;margin:0}
.blog-empty p{font-size:14px;line-height:1.7;color:var(--muted);margin:0;max-width:440px}
.blog-link{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:14px;font-weight:500;text-decoration:none;color:var(--ink);background:none;border:0;border-bottom:1px solid currentColor;border-radius:0;padding:0 0 4px;margin-top:12px;cursor:pointer}
.blog-link svg{width:18px;height:18px}
.blog-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:24px 0}
.blog-story{display:flex;flex-direction:column;padding:24px;border:1px solid var(--line);border-radius:16px;color:var(--ink);text-decoration:none;transition:transform .2s ease}
.blog-story h2{font-size:20px;font-weight:600;line-height:1.5;margin:12px 0}
.blog-story p{font-size:15px;line-height:1.7;color:var(--muted);margin:0}
.blog-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:13px;line-height:1.5}
.blog-story .blog-link{align-self:flex-start;margin-top:24px}
.blog-reader{max-width:680px;margin:0 auto}
.blog-reader header{margin:32px 0}
.blog-reader h1{font-size:28px;line-height:1.5;margin:12px 0 16px;font-weight:600}
.blog-reader .blog-body p{font-size:16px;line-height:1.9;margin:24px 0;white-space:pre-line}
.blog-reader .blog-body h2{font-size:21px;line-height:1.5;margin:32px 0 16px}
@media(hover:hover){.blog-story:hover{transform:translateY(-4px)}}
@media(max-width:700px){.blog{padding:16px 0 32px}.blog-head{align-items:stretch;flex-direction:column;gap:24px;margin-bottom:24px}.blog-search{width:100%;box-sizing:border-box}.blog-tabs{width:100%;box-sizing:border-box}.blog-toolbar{align-items:flex-start;flex-direction:column;gap:8px}.blog-count{align-self:flex-end;padding-bottom:12px}.blog-empty{min-height:280px;padding:32px 16px}.blog-empty h2{font-size:18px}.blog-list{grid-template-columns:minmax(0,1fr);gap:16px}.blog-story{padding:16px}}
@media(prefers-reduced-motion:reduce){.blog-story{transition:none}.blog-story:hover{transform:none}}

#blog-root .blog-search input{padding:0;min-height:24px;border:0;border-radius:0;box-shadow:none;background:transparent;outline:none}
#blog-root .blog-link{box-shadow:none}

/* Category scrolling reaches the panel edges; the article column keeps its inset. */
@media(max-width:700px){
 #blog-root .blog-tabs{box-sizing:border-box;width:calc(100% + 66px);max-width:none;margin-inline:-33px;padding-inline:37px}
}
