.bp-page {
  margin: 0;
  font-family: Tahoma, "Vazirmatn", Arial, sans-serif;
  background: #f0f4f8;
  color: #1e293b;
  line-height: 1.75;
}
.bp-preview-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #b45309;
  color: #fffbeb;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.bp-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.bp-back {
  display: inline-block;
  margin-bottom: 16px;
  color: #0f62fe;
  font-weight: 600;
  text-decoration: none;
}
.bp-back:hover {
  text-decoration: underline;
}
.bp-title {
  margin: 0 0 8px;
  font-size: 26px;
  color: #1e3a5f;
  line-height: 1.35;
}
.bp-subtitle {
  margin: 0 0 20px;
  font-size: 17px;
  color: #64748b;
  font-weight: 600;
}
.bp-body {
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}
.bp-body-html {
  white-space: normal;
  line-height: 1.8;
}
.bp-body-html h1, .bp-body-html h2, .bp-body-html h3, .bp-body-html h4 {
  margin: 1.2em 0 0.5em;
  color: #1e3a5f;
}
.bp-body-html blockquote {
  border-right: 4px solid #93c5fd;
  margin: 1em 0;
  padding: 8px 14px;
  background: #f8fafc;
  color: #475569;
}
.bp-body-html pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}
.bp-excerpt {
  font-size: 17px;
  color: #475569;
  margin: 0 0 16px;
}
.bp-reading {
  margin-top: 12px;
  font-size: 13px;
}
.bp-body img,
.bp-hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
  display: block;
}
.bp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.bp-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.bp-blank {
  min-height: 80px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.bp-tags {
  margin-top: 20px;
  font-size: 13px;
  color: #64748b;
}
.bp-loading,
.bp-error {
  text-align: center;
  padding: 48px 16px;
  color: #64748b;
}
.bp-error a {
  color: #0f62fe;
}
.bp-blocks {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bp-callout {
  padding: 14px 16px;
  border-radius: 12px;
  border-right: 4px solid #0f62fe;
  background: #eff6ff;
  font-size: 15px;
}
.bp-callout-warn {
  border-right-color: #f59e0b;
  background: #fffbeb;
}
.bp-callout-tip {
  border-right-color: #10b981;
  background: #ecfdf5;
}
.bp-quote {
  margin: 0;
  padding: 16px 20px;
  border-right: 4px solid #1e3a5f;
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
}
.bp-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  font-style: normal;
}
.bp-video iframe,
.bp-video video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 12px;
  background: #000;
}
.bp-cta {
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a5f, #0f62fe);
  color: #fff;
  text-align: center;
}
.bp-cta h3 {
  margin: 0 0 8px;
  color: #fff;
}
.bp-cta p {
  margin: 0 0 14px;
  opacity: 0.95;
}
.bp-cta-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  color: #1e3a5f;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.bp-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #fff;
}
.bp-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #1e3a5f;
}
.bp-faq-item p {
  margin: 10px 0 0;
  line-height: 1.7;
}
.bp-article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 800px) {
  .bp-article-layout {
    grid-template-columns: 1fr;
  }
}
.bp-toc {
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}
.bp-toc-title {
  margin: 0 0 10px;
  font-weight: 700;
  color: #1e3a5f;
  font-size: 14px;
}
.bp-toc ol {
  margin: 0;
  padding: 0 18px 0 0;
  list-style: none;
  counter-reset: bp-toc;
}
.bp-toc li {
  margin: 6px 0;
  line-height: 1.5;
}
.bp-toc li.bp-toc-h3 {
  padding-right: 12px;
  font-size: 13px;
}
.bp-toc a {
  color: #334155;
  text-decoration: none;
}
.bp-toc a:hover {
  color: #0f62fe;
}
.bp-body-html h2,
.bp-body-html h3 {
  scroll-margin-top: 80px;
}
.bp-read-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}
.bp-read-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0f62fe, #1e3a5f);
  transition: width 0.08s linear;
}
.bp-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.bp-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}
.bp-author-name {
  font-weight: 700;
  color: #1e3a5f;
}
.bp-author-bio {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.bp-related {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.bp-related h2 {
  font-size: 18px;
  margin: 0 0 14px;
  color: #1e3a5f;
}
.bp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.bp-related-card {
  display: block;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bp-related-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.08);
}
.bp-related-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #1e3a5f;
}
.bp-related-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.bp-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}
.bp-html-embed {
  width: 100%;
  overflow: hidden;
  margin: 16px 0;
}
.bp-html-embed-frame {
  width: 100%;
  min-height: 480px;
  border: 0;
  display: block;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}
.bp-static-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #fff;
}
.bp-static-back {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.bp-static-back:hover {
  background: rgba(15, 23, 42, 0.9);
}
.bp-static-frame {
  display: block;
  width: 100%;
  min-height: 100vh;
  border: 0;
  background: #fff;
}
.bp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bp-table th,
.bp-table td {
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  text-align: right;
}
.bp-table th {
  background: #f1f5f9;
  font-weight: 700;
}
