/* ============================================================================
   Blog — listing (.blog-page) + article (.bpost) — Accrue Retail 2026
   Uses the global design tokens from redesign-2026.css (:root --brand etc.)
   ========================================================================== */

.blog-page,
.bpost {
  font-family: var(--font-body);
  color: var(--ink);
}

/* ---------- Shared hero (gradient band) ---------------------------------- */
.bhero {
  position: relative;
  padding: 150px 0 70px;
  background: var(--ink-900);
  background-image: radial-gradient(1100px 420px at 80% -10%, rgba(0,174,239,.28), transparent 60%),
                    radial-gradient(900px 380px at 0% 0%, rgba(42,82,152,.30), transparent 55%);
  overflow: hidden;
}
.bhero__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.bhero__eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: #6fe0ff; margin-bottom: 16px;
}
.bhero h1 {
  font-family: var(--font-head); font-weight: 800; color: #fff;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin: 0 0 14px;
  max-width: 900px;
}
.bhero__lead { color: rgba(255,255,255,.82); font-size: 1.12rem; line-height: 1.7; max-width: 720px; margin: 0; }

/* Breadcrumb */
.bcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.bcrumb li { color: rgba(255,255,255,.6); font-size: 14px; }
.bcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.35); }
.bcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.bcrumb a:hover { color: #fff; }

/* ---------- Listing grid ------------------------------------------------- */
.blist { padding: 64px 0 90px; background: var(--surface); }
.blist__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.blist__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}

/* Topic filter bar (appears automatically once there are 2+ categories) */
.bfilter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.bfilter__chip {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--slate); background: #fff; border: 1px solid var(--line);
  padding: 9px 18px; border-radius: var(--radius-pill); cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.bfilter__chip:hover { border-color: var(--brand); color: var(--brand-700); }
.bfilter__chip.is-active { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.blist__empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 1.05rem; }
.bcard {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(0,174,239,.35); }
.bcard__imglink { display: block; overflow: hidden; }
.bcard__img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--grad); transition: transform .35s ease;
}
.bcard:hover .bcard__img { transform: scale(1.04); }
.bcard__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.bcard__meta { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.bcard__meta .bcard__cat { color: var(--brand-700); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.bcard__title { font-family: var(--font-head) !important; font-weight: 800 !important; font-size: 1.35rem !important; line-height: 1.28 !important; margin: 0 0 12px !important; }
.bcard__title a { color: var(--ink) !important; text-decoration: none !important; font-weight: 800 !important; }
.bcard__title a:hover { color: var(--brand-700) !important; }
.bcard__excerpt {
  color: var(--slate); font-size: .98rem; line-height: 1.65; margin: 0 0 22px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bcard__btn {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-2); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: .92rem; padding: 11px 22px; border-radius: var(--radius-pill);
  text-decoration: none; transition: background .2s ease, transform .2s ease;
}
.bcard__btn:hover { background: var(--brand-700); transform: translateY(-1px); }
.bcard__btn i { transition: transform .2s ease; }
.bcard__btn:hover i { transform: translateX(3px); }

/* Featured image at the top of an article */
.bpost__feature {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); margin: 4px 0 30px; box-shadow: var(--shadow-sm);
}

/* ---------- Article ------------------------------------------------------ */
.bpost__wrap { background: #fff; padding: 56px 0 30px; }
.bpost__inner { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.bpost__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  color: var(--muted); font-size: 14px; margin: -12px 0 30px;
}
.bpost__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); display: inline-block; }
.bpost__meta .bpost__tag { color: var(--brand-700); font-weight: 700; }

.bpost__body { font-size: 1.075rem; line-height: 1.8; color: var(--slate); }
.bpost__body > p:first-of-type { font-size: 1.18rem; color: var(--ink); }
.bpost__body h2 {
  font-family: var(--font-head); font-weight: 800; color: var(--ink);
  font-size: 1.6rem; line-height: 1.25; margin: 44px 0 14px;
}
.bpost__body h3 {
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: 1.24rem; margin: 30px 0 10px;
}
.bpost__body p { margin: 0 0 18px; }
.bpost__body a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bpost__body a:hover { color: var(--brand); }
.bpost__body ul, .bpost__body ol { margin: 0 0 20px; padding-left: 22px; }
.bpost__body li { margin-bottom: 10px; }
.bpost__body strong { color: var(--ink); }
.bpost__body blockquote {
  margin: 26px 0; padding: 18px 24px; border-left: 4px solid var(--brand);
  background: var(--grad-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink); font-size: 1.12rem;
}
.bpost__body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 24px 0; }

/* Inline highlight / key-takeaways box */
.bkey {
  margin: 30px 0; padding: 24px 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.bkey h3 { margin: 0 0 12px; font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; }
.bkey ul { margin: 0; padding-left: 20px; }

/* Author box */
.bauthor {
  display: flex; align-items: center; gap: 16px; margin: 40px 0 0;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.bauthor__avatar {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
}
.bauthor__name { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.bauthor__role { color: var(--muted); font-size: 14px; }

/* Related posts */
.brelated { background: var(--surface); padding: 64px 0 80px; }
.brelated__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.brelated h2 { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.5rem; margin: 0 0 26px; }
.brelated__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* CTA band */
.bcta { background: var(--ink-850); background-image: var(--grad); color: #fff; }
.bcta__inner { max-width: var(--container); margin: 0 auto; padding: 60px 24px; text-align: center; }
.bcta h2 { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.bcta p { color: rgba(255,255,255,.9); font-size: 1.08rem; max-width: 620px; margin: 0 auto 26px; }
.bcta .theme-btn { background: #fff !important; color: var(--brand-700) !important; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 992px) {
  .blist__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bhero { padding: 120px 0 54px; }
  .blist__grid, .brelated__grid { grid-template-columns: 1fr; }
  .bpost__body { font-size: 1.02rem; }
}
