/* Blog archive and article. Uses the same hero, type and product-card rhythm as the rest of the site. */

.blog-hero .display { max-width: 18em; }
.blog-hero .body { max-width: 46ch; }
.blog-byline { margin-top: var(--s3); font-size: var(--fs-small); font-weight: 600; color: var(--on-dark-soft); }

.blog-list { padding-block: var(--pad-l); background: var(--paper); }
.blog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-bottom: var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; min-width: 0; }
.blog-tools-label { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink); }
.blog-tools .shop-tabs { margin: 0; }
.blog-tools a.shop-tab { text-decoration: none; display: inline-flex; align-items: center; }
.blog-tools a.shop-tab[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.blog-count { margin: 0; white-space: nowrap; }

.blog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--col-gap); align-items: stretch; }
.blog-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease), transform var(--t-micro) var(--ease); }
.blog-card:hover { border-color: var(--brand); box-shadow: 0 22px 44px -28px rgba(29, 58, 44, .55); transform: translateY(-3px); }
.blog-card .thumb { position: relative; aspect-ratio: 3 / 2; background: var(--stone); overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-image) var(--ease); }
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-chip { position: absolute; left: 12px; top: 12px; z-index: 1; max-width: calc(100% - 24px); padding: 6px 10px; background: var(--paper); color: var(--brand); font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.2; }
.blog-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 18px 18px 20px; }
.blog-card time { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.blog-card .title { margin-top: 8px; min-height: 2.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; transition: color var(--t-micro) var(--ease); }
.blog-card:hover .title { color: var(--brand); }
.blog-excerpt { margin: 10px 0 0; max-width: none; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 3em; }
.blog-cta { margin-top: 16px; height: 44px; padding: 0 16px; font-size: 14px; }
.blog-card:hover .blog-cta { background: var(--brand-deep); }
.blog-card:hover .blog-cta svg { transform: translateX(4px); }

/* Simple bar across the whole third line, after the first two rows of articles. */
.blog-banner { grid-column: 1 / -1; min-width: 0; }
.blog-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; width: 100%; padding: 28px 32px; background: var(--brand-deep); border-radius: var(--radius); }
.blog-banner-copy { min-width: 0; }
.blog-banner .label { color: rgba(255,255,255,.78); }
.blog-banner .title { margin: 8px 0 0; max-width: none; white-space: nowrap; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; }
.blog-banner-text { margin: 8px 0 0; max-width: 68ch; color: var(--on-dark-soft); font-size: var(--fs-small); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.blog-banner .btn { flex: none; }

.blog-empty { padding-block: var(--s4); }
.blog-empty .btns { margin-top: var(--gap-cta); }

.blog-pages { margin-top: var(--s6); }
.blog-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.blog-pages a,
.blog-pages span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.blog-pages a:hover { border-color: var(--ink); }
.blog-pages span.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.blog-pages .dots { min-width: 32px; border-color: transparent; background: transparent; }

.blog-single { padding-block: var(--pad-l); background: var(--paper); }
.blog-prose { max-width: 760px; margin-inline: auto; color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.blog-prose > * + * { margin-top: 1.1em; }
.blog-prose :is(h2, h3, h4) { font-family: var(--font-head); color: var(--ink); font-weight: 600; line-height: 1.2; letter-spacing: var(--track-head); margin-top: 1.6em; }
.blog-prose h2 { font-size: var(--fs-h3); }
.blog-prose h3 { font-size: 22px; }
.blog-prose :is(ul, ol) { padding-left: 1.4em; }
.blog-prose li + li { margin-top: .4em; }
.blog-prose a { color: var(--brand); text-underline-offset: 3px; }
.blog-prose blockquote { border-left: 3px solid var(--brand); padding-left: 1em; color: var(--ink); }
.blog-prose img { width: 100%; height: auto; border-radius: var(--radius); }
.blog-prose .blog-pages { margin-top: var(--s4); }

.blog-single .comments-area { max-width: 760px; margin: var(--s6) auto 0; padding-top: var(--s5); border-top: 1px solid var(--line); }
.blog-single .comments-area :is(h2, h3, .title-comments) { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-h3); color: var(--ink); letter-spacing: var(--track-head); }
.blog-single .comment-list { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.blog-single .comment-list li + li { margin-top: var(--s3); }
.blog-back { max-width: 760px; margin: var(--s6) auto 0; }

@media (max-width: 1024px) {
	.blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.blog-banner-inner { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
	.blog-banner .title { white-space: normal; }
}
@media (max-width: 767px) {
	.blog-hero .display { max-width: none; }
	.blog-grid { grid-template-columns: 1fr; gap: 20px; }
}
