/* ===== Blog listing (bp-*) ===== */
.bp {
  position: relative;
  z-index: 1;
}

.bp-hero {
  position: relative;
  padding: calc(var(--total-chrome, 122px) + 36px) 0 40px;
  overflow: hidden;
}

.bp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 10% 30%, rgba(37, 99, 235, 0.15), transparent 58%),
    radial-gradient(ellipse 40% 45% at 92% 12%, rgba(37, 99, 235, 0.07), transparent 55%);
  pointer-events: none;
}

.bp-crumb {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.bp-crumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bp-crumb a:hover {
  color: #e2e8f0;
}

.bp-crumb__sep {
  opacity: 0.5;
}

.bp-crumb [aria-current="page"] {
  color: #cbd5e1;
}

.bp-tag {
  position: relative;
  margin: 0 0 0.65rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.bp-hero__title {
  position: relative;
  margin: 0 0 0.85rem;
  max-width: 28rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #f8fafc;
}

.bp-hero__desc {
  position: relative;
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #94a3b8;
}

.bp-hero__meta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: #64748b;
}

.bp-hero__meta strong {
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 700;
  color: #e2e8f0;
}

.bp-body {
  padding: 0 0 88px;
}

.bp-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bp-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 320px;
}

.bp-search svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.bp-search input {
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(8, 12, 22, 0.65);
  color: #f1f5f9;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bp-search input::placeholder {
  color: #64748b;
}

.bp-search input:focus {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(15, 23, 42, 0.85);
}

.bp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bp-filter {
  height: 36px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.bp-filter:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
}

.bp-filter.is-active {
  color: #f8fafc;
  background: rgba(37, 99, 235, 0.16);
}

/* Featured */
.bp-feat {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 12, 22, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bp-feat:hover {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(15, 23, 42, 0.72);
}

.bp-feat__copy {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
}

.bp-feat__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.bp-feat__badge {
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
}

.bp-feat__cat {
  font-size: 0.78rem;
  color: #64748b;
}

.bp-feat__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #f8fafc;
}

.bp-feat__excerpt {
  margin: 0 0 1.15rem;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #94a3b8;
}

.bp-feat__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 1.15rem;
  font-size: 0.8rem;
  color: #64748b;
}

.bp-feat__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 650;
  color: #93c5fd;
  transition: gap 0.15s ease, color 0.15s ease;
}

.bp-feat:hover .bp-feat__cta {
  gap: 0.55rem;
  color: #bfdbfe;
}

.bp-feat__cta svg {
  width: 14px;
  height: 14px;
}

.bp-feat__media {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(165deg, rgba(37, 99, 235, 0.18), transparent 60%),
    #0b1220;
}

.bp-feat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-feat__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.55);
}

/* Article list */
.bp-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 12, 22, 0.55);
}

.bp-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.25rem 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.bp-item:last-child {
  border-bottom: 0;
}

.bp-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.bp-item__num {
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: #475569;
  padding-top: 0.2rem;
}

.bp-item__body {
  min-width: 0;
}

.bp-item__cat {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.bp-item__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #f1f5f9;
}

.bp-item:hover .bp-item__title {
  color: #fff;
}

.bp-item__excerpt {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.78rem;
  color: #64748b;
}

.bp-item__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 0.15rem;
  color: #64748b;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.bp-item__go svg {
  width: 15px;
  height: 15px;
}

.bp-item:hover .bp-item__go {
  opacity: 1;
  transform: translateX(0);
  color: #93c5fd;
}

.bp-empty {
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(8, 12, 22, 0.55);
}

.bp-empty[hidden],
.bp-item[hidden],
.bp-feat[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .bp-feat {
    grid-template-columns: 1fr;
  }

  .bp-feat__media {
    min-height: 180px;
    order: -1;
  }

  .bp-item {
    grid-template-columns: auto 1fr;
  }

  .bp-item__go {
    display: none;
  }
}

@media (max-width: 560px) {
  .bp-hero {
    padding: calc(var(--total-chrome, 100px) + 24px) 0 28px;
  }

  .bp-body {
    padding-bottom: 64px;
  }

  .bp-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .bp-search {
    max-width: none;
  }

  .bp-item {
    padding: 1.1rem 1rem;
  }

  .bp-item__excerpt {
    -webkit-line-clamp: 3;
  }
}

/* ===== Blog article (ba-*) — editorial reading layout ===== */
.ba {
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
}

.ba-rail {
  width: min(100% - 2.5rem, 42rem);
  margin-inline: auto;
}

.ba-rail--wide {
  width: min(100% - 2.5rem, 64rem);
}

.ba-progress {
  position: fixed;
  top: var(--total-header, 72px);
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 1200;
  pointer-events: none;
}

.ba-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 0.08s linear;
}

.ba-hero {
  position: relative;
  padding: calc(var(--total-chrome, 122px) + 32px) 0 2rem;
  overflow: hidden;
}

.ba-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 55% at 50% 0%, rgba(37, 99, 235, 0.12), transparent 62%);
  pointer-events: none;
}

.ba-hero .bp-crumb {
  margin-bottom: 1.75rem;
}

.ba-kicker {
  position: relative;
  margin: 0 0 0.85rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #60a5fa;
}

.ba-title {
  position: relative;
  margin: 0 0 1rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #f8fafc;
}

.ba-lead {
  position: relative;
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #94a3b8;
}

.ba-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
}

.ba-meta span[aria-hidden="true"] {
  color: #475569;
}

.ba-cover-wrap {
  width: min(100% - 2.5rem, 52rem);
  margin: 0.5rem auto 0;
}

.ba-cover {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0f18;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.ba-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
}

.ba-body {
  padding: 2.75rem 0 1rem;
}

.ba-toc {
  margin: 0 0 2.25rem;
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 22, 0.65);
}

.ba-toc__label {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.ba-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ba-toc a {
  display: block;
  padding: 0.4rem 0.55rem;
  margin: 0 -0.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.ba-toc a:hover,
.ba-toc a.is-active {
  color: #f1f5f9;
  background: rgba(37, 99, 235, 0.12);
}

.ba-prose {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.85;
}

.ba-prose > *:first-child {
  margin-top: 0;
}

.ba-prose h2 {
  margin: 2.5rem 0 0.9rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: #f8fafc;
}

.ba-prose h3 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #f1f5f9;
}

.ba-prose p {
  margin: 0 0 1.25rem;
}

.ba-prose ul,
.ba-prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.25rem;
}

.ba-prose li {
  margin-bottom: 0.45rem;
}

.ba-prose li::marker {
  color: #64748b;
}

.ba-prose a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.ba-prose a:hover {
  color: #bfdbfe;
}

.ba-prose strong {
  color: #e2e8f0;
  font-weight: 650;
}

.ba-prose blockquote,
.ba-prose .article-quote {
  margin: 1.75rem 0;
  padding: 1rem 1.15rem 1rem 1.25rem;
  border-left: 3px solid #2563eb;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 0 10px 10px 0;
  color: #94a3b8;
  font-style: normal;
}

.ba-prose pre,
.ba-prose .article-code,
.ba-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ba-prose pre,
.ba-prose .article-code {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  border-radius: 10px;
  background: #070b12;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.86rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.ba-prose :not(pre) > code {
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88em;
  color: #e2e8f0;
}

.ba-prose img,
.ba-prose figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.ba-prose figure {
  margin: 1.75rem 0;
}

.ba-prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ba-author,
.ba-author-wrap .article-author-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.35rem 1.3rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.9), rgba(10, 14, 22, 0.95));
}

.ba-author__avatar,
.ba-author-wrap .article-author-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e40af, #2563eb);
  color: #fff;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 750;
  font-size: 0.88rem;
}

.ba-author__role {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.ba-author__name,
.ba-author-wrap .article-author-card h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.ba-author__bio,
.ba-author-wrap .article-author-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

.ba-footer-nav {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ba-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ba-back:hover {
  color: #e2e8f0;
}

.ba-related {
  margin-top: 3rem;
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 55%);
}

.ba-related__head {
  margin-bottom: 1.5rem;
}

.ba-related__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.ba-related__title {
  margin: 0;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: #f8fafc;
}

.ba-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ba-related__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 22, 0.7);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.ba-related__card:hover {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(14, 20, 32, 0.95);
  transform: translateY(-2px);
}

.ba-related__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
}

.ba-related__card strong {
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #f1f5f9;
}

.ba-related__meta {
  margin-top: auto;
  font-size: 0.8rem;
  color: #64748b;
}

@media (max-width: 900px) {
  .ba-related__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ba-rail,
  .ba-rail--wide,
  .ba-cover-wrap {
    width: min(100% - 1.75rem, 42rem);
  }

  .ba-hero {
    padding: calc(var(--total-chrome, 100px) + 22px) 0 1.5rem;
  }

  .ba-body {
    padding-top: 2rem;
  }

  .ba-title {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .ba-lead {
    font-size: 1rem;
  }

  .ba-related__grid {
    grid-template-columns: 1fr;
  }

  .ba-cover {
    border-radius: 10px;
  }
}
