.bb-body {
  background: var(--bb-bg, #ffffff);
  color: var(--bb-ink, #0f172a);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

.bb-body .nav { background: rgba(255, 255, 255, .97); }
.bb-body .nav .brand-wm { color: var(--bb-ink, #0f172a); }
.bb-body .footer { background: var(--bb-bg-alt, #f8f9fb); }

.bb-main {
  padding: 2.5rem 0 5rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--bb-accent-rgb, 214, 90, 49), 0.06), transparent 28rem),
    radial-gradient(circle at 88% 3%, rgba(var(--bb-secondary-rgb, 13, 124, 102), 0.05), transparent 24rem),
    var(--bb-bg, #ffffff);
}

.bb-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.bb-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bb-muted, #64748b);
}

.bb-breadcrumbs a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

.bb-breadcrumbs a:hover {
  color: var(--bb-accent, #d65a31);
}

.bb-breadcrumbs span.sep {
  color: #cbd5e1;
}

.bb-hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.4rem;
}

.bb-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--bb-accent-rgb, 214, 90, 49), .18);
  background: rgba(var(--bb-accent-rgb, 214, 90, 49), .07);
  padding: .35rem .7rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--bb-accent, #d65a31);
}

.bb-hero h1 {
  max-width: 54rem;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--bb-ink, #0f172a);
}

.bb-hero p {
  max-width: 44rem;
  margin: 0;
  color: var(--bb-muted, #64748b);
  font-size: 1.02rem;
}

.bb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  margin-bottom: 2rem;
}

.bb-pills {
  display: flex;
  gap: .25rem;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--bb-line, #e2e8f0);
  background: #fff;
  border-radius: 999px;
  padding: .3rem;
  scrollbar-width: none;
}

.bb-pills::-webkit-scrollbar { display: none; }

.bb-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: .45rem .85rem;
  color: var(--bb-muted, #64748b);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.bb-pill:hover {
  background: var(--bb-bg-alt, #f8f9fb);
  color: var(--bb-ink, #0f172a);
}

.bb-pill.is-active {
  background: var(--bb-accent, #d65a31);
  color: #fff;
}

.bb-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: min(100%, 18rem);
}

.bb-search input {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid var(--bb-line, #e2e8f0);
  border-radius: 999px;
  background: #fff;
  padding: .6rem 1rem;
  font-size: .88rem;
  color: var(--bb-ink, #0f172a);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.bb-search input:focus {
  border-color: var(--bb-accent, #d65a31);
  box-shadow: 0 0 0 4px rgba(var(--bb-accent-rgb, 214, 90, 49), .1);
}

.bb-search button {
  flex: 0 0 auto;
  min-height: 2.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--bb-ink, #0f172a);
  padding: .6rem 1.1rem;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s ease;
}

.bb-search button:hover { opacity: .86; }

.bb-featured {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.bb-featured-side {
  display: grid;
  gap: 1rem;
}

.bb-featured-card {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--bb-ink, #0f172a);
  text-decoration: none;
  isolation: isolate;
}

.bb-featured > .bb-featured-card,
.bb-featured-side .bb-featured-card {
  aspect-ratio: 16 / 10;
}

@media (min-width: 860px) {
  .bb-featured { grid-template-columns: 1.55fr 1fr; }
  .bb-featured-side { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .bb-featured-side .bb-featured-card { aspect-ratio: auto; }
}

.bb-featured-side .bb-featured-content {
  padding: 1rem;
}

.bb-featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.bb-featured-card:hover img { transform: scale(1.045); }

.bb-featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, .88), rgba(2, 6, 23, .25) 55%, rgba(2, 6, 23, .04));
}

.bb-featured-content {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 1.4rem;
}

.bb-featured-content .bb-cat-light {
  display: inline-flex;
  border-radius: .25rem;
  background: rgba(2, 6, 23, .72);
  padding: .25rem .5rem;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.bb-featured-content h2 {
  margin: .65rem 0 .4rem;
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.bb-featured-content p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
}

.bb-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.4rem 0 1.2rem;
}

.bb-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -.015em;
}

.bb-section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bb-line, #e2e8f0);
}

.bb-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}

.bb-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bb-line, #e2e8f0);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bb-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--bb-accent-rgb, 214, 90, 49), .32);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .09);
}

.bb-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bb-bg-alt, #f8f9fb);
}

.bb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.bb-card:hover .bb-card-media img { transform: scale(1.035); }

.bb-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .6rem;
  padding: 1.1rem;
}

.bb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  color: var(--bb-muted, #64748b);
  font-size: .72rem;
}

.bb-cat {
  color: var(--bb-accent, #d65a31);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.bb-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.bb-card-title a {
  color: var(--bb-ink, #0f172a);
  text-decoration: none;
}

.bb-card-title a:hover { color: var(--bb-accent, #d65a31); }

.bb-card-excerpt {
  flex: 1;
  margin: 0;
  color: var(--bb-muted, #64748b);
  font-size: .86rem;
  line-height: 1.55;
}

.bb-readmore {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .2rem;
  color: var(--bb-ink, #0f172a);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}

.bb-readmore:hover { color: var(--bb-accent, #d65a31); }

.bb-empty {
  border: 1px dashed var(--bb-line, #e2e8f0);
  border-radius: 1rem;
  background: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--bb-muted, #64748b);
}

.bb-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-top: 2.5rem;
}

.bb-page {
  display: inline-flex;
  min-width: 2.4rem;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bb-line, #e2e8f0);
  border-radius: .7rem;
  background: #fff;
  color: var(--bb-ink, #0f172a);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.bb-page:hover { border-color: var(--bb-accent, #d65a31); color: var(--bb-accent, #d65a31); }

.bb-page.is-active {
  border-color: var(--bb-accent, #d65a31);
  background: var(--bb-accent, #d65a31);
  color: #fff;
}

.bb-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--bb-line, #e2e8f0);
  padding-top: 1.4rem;
}

.bb-cloud .bb-tag { background: #fff; }

.bb-tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border: 1px solid var(--bb-line, #e2e8f0);
  border-radius: 999px;
  padding: .3rem .65rem;
  color: var(--bb-muted, #64748b);
  font-size: .74rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
}

.bb-tag:hover {
  border-color: var(--bb-accent, #d65a31);
  color: var(--bb-accent, #d65a31);
}

/* ── Article ─────────────────────────────────────────────────────────── */

.bb-article-hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
  .bb-article-hero.has-image { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.5rem; }
}

.bb-article-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.bb-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: 1.2rem;
  color: var(--bb-muted, #64748b);
  font-size: .84rem;
}

.bb-avatar {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(var(--bb-accent-rgb, 214, 90, 49), .12);
  color: var(--bb-accent, #d65a31);
  font-weight: 800;
  font-size: .82rem;
}

.bb-byline a { color: var(--bb-ink, #0f172a); font-weight: 600; text-decoration: none; }

.bb-feature {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--bb-line, #e2e8f0);
  border-radius: 1.2rem;
  background: #fff;
}

.bb-feature img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
}

.bb-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1120px) {
  .bb-layout.has-toc { grid-template-columns: 16rem minmax(0, 1fr); gap: 3rem; }
}

.bb-aside {
  display: none;
}

@media (min-width: 1120px) {
  .bb-aside { display: block; position: sticky; top: 6rem; }
}

.bb-toc,
.bb-share {
  border: 1px solid var(--bb-line, #e2e8f0);
  border-radius: .9rem;
  background: #fff;
  padding: 1rem;
}

.bb-toc + .bb-share { margin-top: 1rem; }

.bb-aside-title {
  margin: 0 0 .65rem;
  color: var(--bb-muted, #64748b);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bb-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .2rem;
}

.bb-toc li.level-3 { padding-left: .9rem; }

.bb-toc a {
  display: block;
  padding: .2rem 0;
  color: var(--bb-muted, #64748b);
  font-size: .82rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color .15s ease;
}

.bb-toc a:hover,
.bb-toc a.is-active {
  color: var(--bb-accent, #d65a31);
  font-weight: 700;
}

.bb-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.bb-share-links a,
.bb-share-links button {
  display: inline-flex;
  min-width: 2.1rem;
  min-height: 2.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bb-line, #e2e8f0);
  border-radius: .55rem;
  background: #fff;
  color: var(--bb-muted, #64748b);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.bb-share-links a:hover,
.bb-share-links button:hover {
  border-color: var(--bb-accent, #d65a31);
  color: var(--bb-accent, #d65a31);
}

.bb-toc-mobile {
  margin-bottom: 1.5rem;
  border: 1px solid var(--bb-line, #e2e8f0);
  border-radius: .9rem;
  background: var(--bb-bg-alt, #f8f9fb);
  padding: 1rem;
}

.bb-toc-mobile summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
}

.bb-toc-mobile ol {
  margin: .75rem 0 0;
  padding-left: 1.1rem;
  color: var(--bb-muted, #64748b);
  font-size: .85rem;
}

@media (min-width: 1120px) {
  .bb-toc-mobile { display: none; }
}

.bb-prose {
  max-width: 46rem;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.78;
}

.bb-layout.has-toc .bb-prose { max-width: none; }

.bb-prose > *:first-child { margin-top: 0; }

.bb-prose h1,
.bb-prose h2,
.bb-prose h3,
.bb-prose h4 {
  color: var(--bb-ink, #0f172a);
  letter-spacing: -.02em;
  line-height: 1.25;
  scroll-margin-top: 6rem;
}

.bb-prose h1 { font-size: 1.8rem; margin: 2.2rem 0 .8rem; }
.bb-prose h2 { font-size: 1.45rem; margin: 2.1rem 0 .7rem; }
.bb-prose h3 { font-size: 1.18rem; margin: 1.7rem 0 .55rem; }
.bb-prose h4 { font-size: 1.02rem; margin: 1.4rem 0 .45rem; }

.bb-prose p { margin: 0 0 1.15rem; }

.bb-prose a {
  color: var(--bb-accent, #d65a31);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.bb-prose ul,
.bb-prose ol { margin: 0 0 1.2rem; padding-left: 1.35rem; }
.bb-prose li { margin-bottom: .35rem; }

.bb-prose blockquote {
  margin: 1.6rem 0;
  border-left: 4px solid var(--bb-accent, #d65a31);
  border-radius: 0 .7rem .7rem 0;
  background: var(--bb-bg-alt, #f8f9fb);
  padding: 1rem 1.15rem;
  color: #475569;
  font-style: italic;
}

.bb-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: .8rem;
}

.bb-prose figure { margin: 1.5rem 0; }
.bb-prose figcaption { margin-top: .4rem; text-align: center; color: var(--bb-muted, #64748b); font-size: .8rem; }

.bb-prose pre,
.bb-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
}

.bb-prose code {
  border-radius: .35rem;
  background: #f1f5f9;
  padding: .15em .35em;
}

.bb-prose pre {
  overflow-x: auto;
  border-radius: .8rem;
  background: #0f172a;
  padding: 1rem 1.15rem;
  color: #e2e8f0;
}

.bb-prose pre code { background: none; padding: 0; color: inherit; }

.bb-prose hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--bb-line, #e2e8f0); }

.bb-prose .bb-table-wrap { overflow-x: auto; margin: 1.5rem 0; }

.bb-prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bb-prose th,
.bb-prose td { border: 1px solid var(--bb-line, #e2e8f0); padding: .6rem .7rem; text-align: left; }
.bb-prose th { background: var(--bb-bg-alt, #f8f9fb); font-weight: 700; }

.bb-prose .bb-embed {
  position: relative;
  overflow: hidden;
  margin: 1.5rem 0;
  padding-top: 56.25%;
  border-radius: .8rem;
}

.bb-prose .bb-embed iframe,
.bb-prose .bb-embed embed,
.bb-prose .bb-embed object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bb-article-footer {
  max-width: 46rem;
  margin-top: 2.2rem;
  border-top: 1px solid var(--bb-line, #e2e8f0);
  padding-top: 1.25rem;
}

.bb-layout.has-toc .bb-article-footer { max-width: none; }

.bb-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  font-size: .82rem;
  color: var(--bb-muted, #64748b);
}

.bb-mobile-share {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 1120px) {
  .bb-mobile-share { display: none; }
}

.bb-prevnext {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .bb-prevnext { grid-template-columns: 1fr 1fr; }
}

.bb-prevnext a {
  display: block;
  border: 1px solid var(--bb-line, #e2e8f0);
  border-radius: .9rem;
  background: #fff;
  padding: 1rem;
  text-decoration: none;
  transition: border-color .15s ease;
}

.bb-prevnext a:hover { border-color: rgba(var(--bb-accent-rgb, 214, 90, 49), .45); }

.bb-prevnext span.label {
  display: block;
  margin-bottom: .3rem;
  color: var(--bb-muted, #64748b);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bb-prevnext span.title {
  display: block;
  color: var(--bb-ink, #0f172a);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
}

.bb-prevnext .next { text-align: right; }

.bb-related {
  margin-top: 3.5rem;
  border-top: 1px solid var(--bb-line, #e2e8f0);
  padding-top: 2rem;
}

.bb-related h2 {
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
  letter-spacing: -.02em;
}

.bb-related-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .bb-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bb-related-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-decoration: none;
}

.bb-related-card .bb-card-media { border-radius: .8rem; }

.bb-related-card h3 {
  margin: 0;
  color: var(--bb-ink, #0f172a);
  font-size: .95rem;
  line-height: 1.4;
}

.bb-related-card:hover h3 { color: var(--bb-accent, #d65a31); }

.bb-related-card time {
  color: var(--bb-muted, #64748b);
  font-size: .75rem;
}

.bb-search-header {
  margin-bottom: 1.5rem;
}

.bb-search-header h1 { margin: 0 0 .4rem; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.bb-search-header p { margin: 0; color: var(--bb-muted, #64748b); }

@media (max-width: 639px) {
  .bb-main { padding-top: 1.5rem; }
  .bb-search { width: 100%; }
  .bb-search button { padding-inline: .95rem; }
  .bb-featured-content { padding: 1.05rem; }
}
