/* ---- Blog-specific styles, layered on top of site.css ---- */

.ns-blog-hero { padding: 50px 0 40px; background: hsl(210 35% 93%); text-align: center; }
.ns-blog-hero h1 { margin: 0 0 12px; font: 700 clamp(2.2rem, 6vw, 3.4rem)/1.05 var(--app-font-display); letter-spacing: -.04em; }
.ns-blog-hero p { max-width: 560px; margin: 0 auto; color: hsl(var(--muted-foreground)); font-size: 1.02rem; }

.ns-blog-grid { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 50px 0; }
@media (min-width: 720px) { .ns-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ns-blog-grid { grid-template-columns: repeat(3, 1fr); } }

.ns-blog-card { display: flex; flex-direction: column; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.ns-blog-card:hover { transform: translateY(-3px); box-shadow: 8px 8px 0 hsl(202 86% 91%); }
.ns-blog-card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: hsl(210 35% 93%); display: block; }
.ns-blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ns-blog-card-body h2 { margin: 0; font: 700 1.15rem/1.3 var(--app-font-display); letter-spacing: -.02em; }
.ns-blog-card-body p { margin: 0; color: hsl(var(--muted-foreground)); font-size: .87rem; line-height: 1.6; flex: 1; }
.ns-blog-card-meta { display: flex; gap: 10px; align-items: center; color: hsl(var(--muted-foreground)); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }

.ns-blog-empty { padding: 70px 0; text-align: center; color: hsl(var(--muted-foreground)); }

.ns-pagination { display: flex; justify-content: center; gap: 10px; padding: 10px 0 60px; }
.ns-pagination a, .ns-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid hsl(var(--border)); text-decoration: none; color: hsl(var(--foreground)); font: 700 .85rem var(--app-font-display); }
.ns-pagination a:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.ns-pagination .active { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: hsl(var(--foreground)); }

.ns-breadcrumb { padding: 22px 0 0; font-size: .8rem; color: hsl(var(--muted-foreground)); }
.ns-breadcrumb a { color: hsl(var(--muted-foreground)); text-decoration: none; }
.ns-breadcrumb a:hover { color: hsl(var(--primary)); }

.ns-article-hero { padding: 26px 0 40px; }
.ns-article-hero .ns-kicker { margin-bottom: 14px; }
.ns-article-hero h1 { margin: 0 0 16px; font: 700 clamp(2rem, 5vw, 3.1rem)/1.1 var(--app-font-display); letter-spacing: -.035em; max-width: 900px; }
.ns-article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: hsl(var(--muted-foreground)); font-size: .84rem; margin-bottom: 26px; }
.ns-article-hero-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: 18px; border: 1px solid hsl(var(--border)); display: block; }

.ns-article-layout { display: grid; grid-template-columns: 1fr; gap: 50px; padding: 0 0 70px; align-items: start; }
@media (min-width: 960px) { .ns-article-layout { grid-template-columns: minmax(0, 1fr) 320px; } }

.ns-article-content { max-width: 760px; font-size: 1.02rem; line-height: 1.8; color: hsl(var(--foreground)); }
.ns-article-content h2 { font: 700 1.6rem/1.25 var(--app-font-display); letter-spacing: -.03em; margin: 42px 0 16px; }
.ns-article-content h3 { font: 700 1.25rem/1.3 var(--app-font-display); letter-spacing: -.02em; margin: 32px 0 14px; }
.ns-article-content p { margin: 0 0 20px; }
.ns-article-content ul, .ns-article-content ol { margin: 0 0 20px; padding-left: 22px; }
.ns-article-content li { margin-bottom: 8px; }
.ns-article-content a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.ns-article-content img { max-width: 100%; height: auto; border-radius: 14px; margin: 8px 0 28px; display: block; }
.ns-article-content figure { margin: 8px 0 28px; }
.ns-article-content figcaption { margin-top: 8px; font-size: .8rem; color: hsl(var(--muted-foreground)); text-align: center; }
.ns-article-content blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid hsl(var(--primary)); color: hsl(var(--muted-foreground)); font-style: italic; }
.ns-article-content code { background: hsl(210 35% 93%); padding: 2px 6px; border-radius: 5px; font-size: .88em; }
.ns-article-content pre { background: hsl(220 25% 14%); color: hsl(210 30% 92%); padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 0 0 24px; }
.ns-article-content pre code { background: none; padding: 0; color: inherit; }
.ns-article-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .9rem; }
.ns-article-content th, .ns-article-content td { border: 1px solid hsl(var(--border)); padding: 10px 14px; text-align: left; }
.ns-article-content th { background: hsl(210 35% 93%); font-family: var(--app-font-display); }
.ns-article-content hr { border: none; border-top: 1px solid hsl(var(--border)); margin: 36px 0; }

.ns-sidebar { display: flex; flex-direction: column; gap: 22px; position: static; }
.ns-sidebar-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 16px; padding: 22px; }
.ns-sidebar-card h3 { margin: 0 0 14px; font: 700 .95rem var(--app-font-display); }
.ns-sidebar-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ns-sidebar-list a { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: inherit; font-size: .85rem; line-height: 1.5; }
.ns-sidebar-list a:hover { color: hsl(var(--primary)); }
.ns-sidebar-tool-list a { padding: 9px 0; border-bottom: 1px solid hsl(var(--border)); font-weight: 600; font-size: .86rem; }
.ns-sidebar-tool-list a:last-child { border-bottom: none; }
.ns-sidebar-cta { text-align: center; }
.ns-sidebar-cta p { color: hsl(var(--muted-foreground)); font-size: .82rem; margin: 6px 0 16px; }

.ns-article-faq { margin-top: 46px; }
.ns-article-faq h2 { font: 700 1.6rem/1.25 var(--app-font-display); letter-spacing: -.03em; margin: 0 0 18px; }

.ns-related-posts { padding: 20px 0 70px; }
