/* Blog overview: category chips, title search, the featured post, the card
   grid, and the empty state. Cards themselves are in base.css. */

.b-hero { max-width: 1220px; margin: 0 auto; padding: 40px 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.b-h1 { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(36px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.b-lead { margin: 0; max-width: 680px; font-size: 18px; color: var(--muted); text-wrap: pretty; }

/* ---------- Filters */
.b-filter { max-width: 1220px; margin: 0 auto; padding: 0 24px 24px; }
.b-filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.b-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; transition: border-color .15s ease, transform .15s ease; }
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip-n { font-size: 12px; color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.chip[aria-pressed="true"]:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] .chip-n { color: var(--line-strong); }
.b-search { flex: 0 1 320px; min-width: min(100%, 240px); display: flex; flex-direction: column; gap: 4px; }
.b-search label { font-size: 13px; font-weight: 500; }
.b-search-field { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); }
.b-search-field input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: transparent; font-size: 16px; color: var(--ink); }
.b-search-field input::placeholder { color: var(--muted); opacity: 1; }
.b-result { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Featured post */
.b-featured { max-width: 1220px; margin: 0 auto; padding: 0 24px 28px; }
.b-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 0; }
.b-feat-art { display: flex; align-items: center; justify-content: center; min-height: 260px; padding: 28px; background: var(--tint); border-right: 1px solid var(--line-soft); }
.b-feat-art svg { width: 100%; max-width: 520px; height: auto; }
.b-feat-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 32px clamp(20px, 3vw, 40px); }
.b-feat-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.b-feat-flag { font-size: 13px; color: var(--muted); }
.b-feat-title { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.b-feat-sum { margin: 0; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.b-feat-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--muted); }
.b-feat-more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 500; font-size: 15px; }

/* ---------- Cards and empty state */
.b-posts { max-width: 1220px; margin: 0 auto; padding: 0 24px 24px; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.b-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 24px; border: 1px dashed var(--line-mid); border-radius: 22px; text-align: center; }
.b-empty-h { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 24px; }
.b-empty p { margin: 0; max-width: 460px; color: var(--muted); }
.b-empty .btn-ghost-sm { padding: 0 20px; }
