
:root {
  --btbp-bg: #07090d;
  --btbp-surface: #0d1118;
  --btbp-surface-2: #131924;
  --btbp-line: rgba(255,255,255,.09);
  --btbp-text: #f5f7fa;
  --btbp-muted: #9ca7b7;
  --btbp-accent: #f5b83b;
  --btbp-accent-2: #ff7b4b;
  --btbp-success: #52d39a;
  --btbp-max: 1180px;
  --btbp-copy: 760px;
  --btbp-shadow: 0 24px 70px rgba(0,0,0,.38);
}

html { scroll-behavior: smooth; }

body.btbp-page {
  margin: 0;
  background: var(--btbp-bg);
}

body.btbp-page,
body.btbp-page * {
  box-sizing: border-box;
}

.btbp-site {
  min-height: 100vh;
  overflow: hidden;
  color: var(--btbp-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(245,184,59,.09), transparent 30rem),
    radial-gradient(circle at 95% 15%, rgba(255,123,75,.07), transparent 29rem),
    var(--btbp-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.btbp-site a {
  color: inherit;
  text-decoration: none;
}

.btbp-container {
  width: min(calc(100% - 40px), var(--btbp-max));
  margin-inline: auto;
}

.btbp-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 99999;
  height: 3px;
  background: rgba(255,255,255,.03);
}

.btbp-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--btbp-accent-2), var(--btbp-accent));
}

.btbp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--btbp-line);
  background: rgba(7,9,13,.86);
  backdrop-filter: blur(18px);
}

.admin-bar .btbp-header { top: 32px; }

.btbp-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.btbp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.btbp-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245,184,59,.35);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(245,184,59,.2), rgba(255,123,75,.08));
}

.btbp-brand-mark svg { width: 23px; height: 23px; }
.btbp-brand-name { font-size: 1.04rem; }
.btbp-brand-name span { color: var(--btbp-accent); }

.btbp-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--btbp-muted);
  font-size: .92rem;
  font-weight: 650;
}

.btbp-menu a:hover { color: var(--btbp-text); }

.btbp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btbp-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--btbp-line);
  border-radius: 12px;
  color: var(--btbp-text);
  background: transparent;
  font: inherit;
  font-size: .91rem;
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.btbp-button:hover { transform: translateY(-2px); }
.btbp-button-ghost { background: rgba(255,255,255,.025); }
.btbp-button-ghost:hover { border-color: rgba(255,255,255,.2); }

.btbp-button-primary {
  color: #171008 !important;
  border-color: transparent;
  background: linear-gradient(135deg, var(--btbp-accent), #ffcf65);
  box-shadow: 0 12px 30px rgba(245,184,59,.17);
}

.btbp-article-hero {
  padding: 72px 0 54px;
}

.btbp-back {
  display: inline-flex;
  margin-bottom: 54px;
  color: #8c98a9 !important;
  font-size: .88rem;
  font-weight: 700;
}

.btbp-back:hover { color: var(--btbp-text) !important; }

.btbp-hero-inner {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.btbp-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9px 13px;
  color: #8995a6;
  font-size: .8rem;
  font-weight: 690;
}

.btbp-category {
  color: #f7c764 !important;
  font-weight: 820;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.btbp-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #566171;
}

.btbp-article-hero h1 {
  max-width: 980px;
  margin: 22px auto 24px;
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 860;
  text-wrap: balance;
}

.btbp-deck {
  max-width: 780px;
  margin: 0 auto;
  color: var(--btbp-muted);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.7;
}

.btbp-author {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
  text-align: left;
}

.btbp-author-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(245,184,59,.32);
  border-radius: 50%;
  color: var(--btbp-accent);
  background: rgba(245,184,59,.08);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.btbp-author strong,
.btbp-author span {
  display: block;
}

.btbp-author strong { font-size: .94rem; }
.btbp-author span { color: #7f8a9a; font-size: .77rem; }

.btbp-featured-wrap { padding: 0 0 76px; }

.btbp-featured {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--btbp-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 15%, rgba(245,184,59,.28), transparent 32%),
    radial-gradient(circle at 83% 82%, rgba(255,123,75,.22), transparent 31%),
    linear-gradient(145deg,#171d28,#0a0e14);
  box-shadow: var(--btbp-shadow);
}

.btbp-featured-image {
  width: 100%;
  height: clamp(440px, 54vw, 690px);
  display: block;
  object-fit: cover;
}

.btbp-fallback-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.btbp-fallback-grid {
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.btbp-fallback-visual svg {
  position: relative;
  z-index: 2;
  width: min(82%, 960px);
  height: auto;
}

.btbp-fallback-label {
  position: absolute;
  left: 34px;
  bottom: 28px;
  z-index: 3;
  color: rgba(255,255,255,.25);
  font-size: clamp(1rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: .17em;
}

.btbp-content-section {
  padding: 0 0 90px;
}

.btbp-article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, var(--btbp-copy));
  justify-content: center;
  gap: 62px;
  align-items: start;
}

.btbp-sidebar {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 16px;
}

.admin-bar .btbp-sidebar { top: 150px; }

.btbp-sidebar-card {
  padding: 20px;
  border: 1px solid var(--btbp-line);
  border-radius: 16px;
  background: rgba(255,255,255,.022);
}

.btbp-sidebar-label {
  margin-bottom: 13px;
  color: #d8dde5;
  font-size: .78rem;
  font-weight: 820;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.btbp-toc {
  display: grid;
  gap: 10px;
}

.btbp-toc a {
  color: #7f8b9c;
  font-size: .82rem;
  line-height: 1.4;
}

.btbp-toc a:hover,
.btbp-toc a.is-active {
  color: var(--btbp-accent);
}

.btbp-toc a[data-level="3"] {
  padding-left: 12px;
  font-size: .77rem;
}

.btbp-sidebar-product {
  background:
    radial-gradient(circle at 95% 0%, rgba(245,184,59,.15), transparent 12rem),
    var(--btbp-surface);
}

.btbp-sidebar-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--btbp-accent);
  font-size: .72rem;
  font-weight: 830;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.btbp-sidebar-product strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.btbp-sidebar-product p {
  margin: 9px 0 14px;
  color: var(--btbp-muted);
  font-size: .8rem;
}

.btbp-sidebar-product a {
  color: #f7c764 !important;
  font-size: .8rem;
  font-weight: 800;
}

.btbp-entry-content {
  color: #d9dee6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  line-height: 1.86;
}

.btbp-entry-content > *:first-child { margin-top: 0; }

.btbp-entry-content p,
.btbp-entry-content ul,
.btbp-entry-content ol,
.btbp-entry-content blockquote,
.btbp-entry-content figure,
.btbp-entry-content table {
  margin: 0 0 1.55em;
}

.btbp-entry-content h2,
.btbp-entry-content h3,
.btbp-entry-content h4 {
  color: var(--btbp-text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -.035em;
  scroll-margin-top: 125px;
}

.btbp-entry-content h2 {
  margin: 2.1em 0 .72em;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.btbp-entry-content h3 {
  margin: 1.8em 0 .65em;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.btbp-entry-content h4 {
  margin: 1.55em 0 .55em;
  font-size: 1.25rem;
}

.btbp-entry-content strong {
  color: #fff;
  font-weight: 800;
}

.btbp-entry-content a {
  color: #f6c765;
  text-decoration: underline;
  text-decoration-color: rgba(246,199,101,.38);
  text-underline-offset: 4px;
}

.btbp-entry-content ul,
.btbp-entry-content ol {
  padding-left: 1.4em;
}

.btbp-entry-content li {
  margin-bottom: .55em;
  padding-left: .2em;
}

.btbp-entry-content li::marker {
  color: var(--btbp-accent);
  font-weight: 800;
}

.btbp-entry-content blockquote {
  position: relative;
  margin-block: 2em;
  padding: 1.35em 1.45em 1.35em 1.65em;
  border-left: 3px solid var(--btbp-accent);
  border-radius: 0 16px 16px 0;
  color: #eef1f5;
  background: linear-gradient(90deg, rgba(245,184,59,.10), rgba(255,255,255,.025));
  font-size: 1.16em;
  line-height: 1.65;
}

.btbp-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.btbp-entry-content figcaption {
  margin-top: 9px;
  color: #7e8999;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .76rem;
  text-align: center;
}

.btbp-entry-content hr {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid var(--btbp-line);
}

.btbp-entry-content table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border: 1px solid var(--btbp-line);
  border-radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .88rem;
}

.btbp-entry-content th,
.btbp-entry-content td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--btbp-line);
  text-align: left;
}

.btbp-entry-content th {
  color: var(--btbp-text);
  background: rgba(255,255,255,.04);
}

.btbp-article-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--btbp-line);
  border-bottom: 1px solid var(--btbp-line);
}

.btbp-article-share span,
.btbp-article-share strong {
  display: block;
}

.btbp-article-share span {
  color: #7f8999;
  font-size: .78rem;
}

.btbp-article-share strong {
  margin-top: 3px;
  font-size: .94rem;
}

.btbp-end-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 54px;
  padding: 34px;
  border: 1px solid rgba(245,184,59,.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245,184,59,.18), transparent 18rem),
    var(--btbp-surface);
}

.btbp-end-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--btbp-accent);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.btbp-end-cta h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.btbp-end-cta p {
  max-width: 590px;
  margin: 13px 0 0;
  color: var(--btbp-muted);
  font-size: .9rem;
}

.btbp-post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 42px;
}

.btbp-post-nav-item {
  min-height: 80px;
}

.btbp-post-nav-item span {
  display: block;
  margin-bottom: 7px;
  color: #707b8a;
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.btbp-post-nav-item a {
  font-weight: 760;
  line-height: 1.4;
}

.btbp-post-nav-next { text-align: right; }

.btbp-related {
  padding: 84px 0;
  border-top: 1px solid var(--btbp-line);
  background: rgba(255,255,255,.012);
}

.btbp-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.btbp-section-kicker {
  color: var(--btbp-accent);
  font-size: .76rem;
  font-weight: 830;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.btbp-section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.btbp-section-heading > a {
  color: #f6c765 !important;
  font-size: .88rem;
  font-weight: 760;
}

.btbp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.btbp-related-card {
  overflow: hidden;
  border: 1px solid var(--btbp-line);
  border-radius: 18px;
  background: var(--btbp-surface);
}

.btbp-related-visual {
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(245,184,59,.22), transparent 15rem),
    linear-gradient(145deg,#171d28,#0a0e14);
}

.btbp-related-visual img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.btbp-related-fallback {
  color: rgba(255,255,255,.18);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.btbp-related-body { padding: 22px; }

.btbp-related-body > span {
  color: #7f8a99;
  font-size: .75rem;
}

.btbp-related-body h3 {
  margin: 9px 0 18px;
  font-size: 1.25rem;
  line-height: 1.28;
  letter-spacing: -.025em;
}

.btbp-related-link {
  color: #f6c765 !important;
  font-size: .82rem;
  font-weight: 780;
}

.btbp-footer {
  border-top: 1px solid var(--btbp-line);
  padding: 30px 0 40px;
}

.btbp-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  color: #7f8998;
  font-size: .82rem;
}

.btbp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 1050px) {
  .btbp-menu { display: none; }

  .btbp-article-layout {
    grid-template-columns: minmax(0, var(--btbp-copy));
  }

  .btbp-sidebar { display: none; }
}

@media (max-width: 820px) {
  .admin-bar .btbp-header { top: 46px; }

  .btbp-article-hero {
    padding-top: 56px;
  }

  .btbp-back {
    margin-bottom: 40px;
  }

  .btbp-article-hero h1 {
    font-size: clamp(2.8rem, 11vw, 5rem);
  }

  .btbp-featured-wrap {
    padding-bottom: 56px;
  }

  .btbp-featured,
  .btbp-fallback-visual {
    min-height: 340px;
  }

  .btbp-end-cta {
    grid-template-columns: 1fr;
  }

  .btbp-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .btbp-container {
    width: min(calc(100% - 28px), var(--btbp-max));
  }

  .btbp-nav {
    min-height: 68px;
  }

  .btbp-brand-name {
    font-size: .94rem;
  }

  .btbp-nav-actions .btbp-button-ghost {
    display: none;
  }

  .btbp-button {
    min-height: 42px;
    padding-inline: 14px;
  }

  .btbp-article-hero {
    padding: 46px 0 42px;
  }

  .btbp-back {
    margin-bottom: 34px;
  }

  .btbp-hero-inner {
    text-align: left;
  }

  .btbp-meta {
    justify-content: flex-start;
  }

  .btbp-article-hero h1 {
    margin-top: 18px;
    font-size: clamp(2.7rem, 13vw, 4.3rem);
  }

  .btbp-author {
    align-items: flex-start;
  }

  .btbp-featured,
  .btbp-fallback-visual {
    min-height: 260px;
    border-radius: 19px;
  }

  .btbp-fallback-label {
    left: 20px;
    bottom: 18px;
    font-size: .8rem;
  }

  .btbp-entry-content {
    font-size: 1.04rem;
    line-height: 1.8;
  }

  .btbp-entry-content h2 {
    font-size: 2rem;
  }

  .btbp-article-share {
    align-items: flex-start;
    flex-direction: column;
  }

  .btbp-end-cta {
    padding: 27px 23px;
  }

  .btbp-post-navigation {
    grid-template-columns: 1fr;
  }

  .btbp-post-nav-next {
    text-align: left;
  }

  .btbp-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .btbp-related-grid {
    grid-template-columns: 1fr;
  }

  .btbp-footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
