/* BuzzScaler Journal — blog listing (pages/blog.php). Cards live in cards.css. */
.bl { overflow-x: clip; padding-bottom: var(--bl-gap); --bl-gap: var(--section-y-sm, clamp(44px, 5.5vw, 72px)); --bl-head: clamp(18px, 2.4vw, 26px); }

/* Hero */
.bl-hero { padding: clamp(28px, 5vw, 60px) 0 0; text-align: center; }
.bl-hero.aurora::before { inset: -30% -10% auto; height: 760px; }
.bl-hero .crumbs { justify-content: center; margin-bottom: 18px; }
.bl-hero .eyebrow .i { width: 16px; height: 16px; }
.bl-hero .h1 { margin: 14px auto 0; max-width: 17ch; }
.bl-hero .lead { max-width: 640px; margin: 16px auto 0; }
.bl-search { position: relative; z-index: 20; display: flex; align-items: center; gap: 10px; max-width: 580px; height: 60px; margin: 30px auto 0; padding: 0 7px 0 20px; border-radius: 999px; background: var(--glass-bg-strong); transition: box-shadow .25s var(--ease); }
.bl-search > .i { color: var(--muted); }
.bl-search:focus-within { box-shadow: var(--glass-shadow), 0 0 0 1px rgba(124, 58, 237, .35), 0 0 0 5px rgba(124, 58, 237, .12); }
.bl-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 16px; outline: 0; }
.bl-search input::placeholder { color: var(--faint); }
.bl-search input::-webkit-search-cancel-button { cursor: pointer; }
.bl-search .btn { height: 46px; padding: 0 20px; }
.bl-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; text-align: left; border-radius: 20px; background: var(--glass-bg-strong); max-height: 360px; overflow: auto; }
.bl-suggest li a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px; font-size: 15px; font-weight: 550; line-height: 1.35; }
.bl-suggest li small { font-size: 12px; font-weight: 500; color: var(--muted); }
.bl-suggest li[aria-selected="true"] a, .bl-suggest li a:hover { background: rgba(124, 58, 237, .08); }
.bl-suggest .bl-all a { color: var(--violet-2); font-size: 14px; }
.bl-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.bl-pills a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s, box-shadow .2s, color .2s; }
.bl-pills a:has(.n) { padding-right: 7px; }
.bl-pills a:hover { background: #fff; box-shadow: inset 0 0 0 1px #d6cff0, 0 6px 16px -10px rgba(60, 30, 160, .4); }
.bl-pills .n { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: rgba(124, 58, 237, .08); color: var(--violet-2); font-size: 12px; font-weight: 650; }
.bl-pills a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(11, 11, 15, .6); }
.bl-pills a[aria-current="page"] .n { background: rgba(255, 255, 255, .16); color: #fff; }
.bl-stats { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* Leaderboard */
.bl-lb { margin-top: clamp(32px, 4.5vw, 52px); }
.bl-lb .ad-slot { margin: 0 auto; max-width: 970px; }

/* Sections — one spacing scale */
.bl-sec { padding-top: var(--bl-gap); }
.bl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: var(--bl-head); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bl-head h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.028em; }
.bl-sub { font-size: 14px; color: var(--muted); white-space: nowrap; }
.bl-sub a { color: var(--violet-2); font-weight: 600; }

/* Featured */
.bl-feat { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.bl-feat .pc-lead { grid-row: span 2; }

/* Topics */
.bl-topics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.bl-topic { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: var(--r); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bl-topics li:nth-child(odd) .bl-topic { background: linear-gradient(160deg, rgba(243, 239, 254, .9), rgba(255, 255, 255, .7)); }
.bl-topics li:nth-child(even) .bl-topic { background: linear-gradient(160deg, rgba(253, 238, 246, .9), rgba(255, 255, 255, .7)); }
.bl-topic:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow), 0 0 0 1px rgba(124, 58, 237, .25), 0 18px 36px -20px rgba(124, 58, 237, .45); }
.bl-art { display: block; margin-bottom: 8px; }
.bl-art .plogo { width: 40px; height: 40px; }
.bl-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .6); }
.bl-ico .i { width: 20px; height: 20px; }
.bl-tname { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.bl-tdesc { font-size: 13px; line-height: 1.45; color: var(--muted); }
.bl-tcount { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--violet-2); }
.bl-tcount .i { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.bl-topic:hover .bl-tcount .i { transform: translateX(3px); }

/* Latest grid: every row equal height (grid-auto-rows: 1fr) */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.bl-grid > .pc { height: 100%; }
.bl-adcell { display: flex; min-height: 0; overflow: hidden; padding: 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.bl-adcell .ad-slot { display: flex; flex-direction: column; flex: 1; width: 100%; margin: 0; }
.bl-adcell .ad-slot ins { flex: 1; }
.bl-adcell .ad-preview { flex: 1; min-height: 0; height: auto; }
.bl-more { display: none; flex-direction: column; justify-content: center; gap: 10px; padding: 28px; border-radius: var(--r); background: var(--grad-soft); border: 1px solid var(--line); }
.bl-more-t { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.bl-more-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bl-more-links a { display: inline-flex; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 550; }
.bl-more-links a:hover { background: #fff; color: var(--violet-2); }
.bl-more-links span { color: var(--faint); }
@media (min-width: 1001px) { .bl-more.d1 { display: flex; } .bl-more.d2 { display: flex; grid-column: span 2; } }
@media (min-width: 641px) and (max-width: 1000px) { .bl-more.t1 { display: flex; } }

.bl-empty { padding: clamp(28px, 5vw, 48px); border-radius: var(--r-lg); text-align: center; color: var(--muted); }
.bl-empty-t { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }

/* Pagination */
.bl-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(28px, 4vw, 44px); }
.bl-pg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); background: var(--glass-bg-strong); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s, box-shadow .2s; }
a.bl-pg:hover { background: #fff; box-shadow: inset 0 0 0 1px #cfc5f2, 0 8px 18px -12px rgba(60, 30, 160, .5); }
.bl-pg[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
.bl-pg .i { width: 16px; height: 16px; }
.bl-prev .i { transform: rotate(180deg); }

/* Newsletter band */
.bl-news { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(28px, 4.5vw, 52px); border-radius: var(--r-lg); }
.bl-news::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 0% 0%, rgba(124, 58, 237, .14), transparent 70%), radial-gradient(45% 90% at 100% 100%, rgba(255, 67, 148, .12), transparent 70%), radial-gradient(40% 70% at 70% 0%, rgba(255, 138, 30, .08), transparent 70%); }
.bl-news .eyebrow .i { width: 16px; height: 16px; }
.bl-news h2, .bl-news .wt-h2 { margin-top: 12px; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.03em; }
.bl-news p { margin-top: 10px; color: var(--muted); }
.bl-news .newsletter { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-news .newsletter input[type="email"] { flex: 1 1 220px; min-width: 0; height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .9); font-size: 16px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.bl-news .newsletter input[type="email"]:focus { border-color: #b9a6f5; box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.bl-news .newsletter .btn { height: 54px; }
.bl-news .newsletter-msg { flex-basis: 100%; margin: 0; padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 550; }
.bl-news .newsletter-msg.ok { background: #e9f9ef; color: #15703b; }
.bl-news .newsletter-msg.err { background: #fdecef; color: #b4234a; }
.bl + section.section-sm { padding-top: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .bl-feat { grid-template-columns: 1fr 1fr; }
  .bl-feat .pc-lead { grid-column: 1 / -1; grid-row: auto; }
  .bl-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-news { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bl-search { height: 56px; padding-left: 16px; }
  .bl-search .btn { padding: 0 16px; height: 42px; }
  .bl-hero .bl-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 20px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter); scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }
  .bl-hero .bl-pills::-webkit-scrollbar { display: none; }
  .bl-feat { grid-template-columns: 1fr; }
  .bl-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bl-topic { padding: 16px; }
  .bl-grid { grid-template-columns: 1fr; gap: 16px; grid-auto-rows: auto; }
  .bl-adcell { min-height: 300px; }
  .bl-news .newsletter .btn { flex: 1 1 100%; }
  .bl-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .bl-pg.bl-prev span, .bl-pg.bl-next span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bl-topic:hover { transform: none; } }
