.skbf-wrap {
  --skbf-ink: #0f2744;
  --skbf-muted: #5b6b7c;
  --skbf-line: #d7dee8;
  --skbf-accent: #c45c26;
  --skbf-bg: #f3f6fa;
  --skbf-card: #ffffff;
  box-sizing: border-box;
  background: var(--skbf-bg);
  color: var(--skbf-ink);
  font-family: "Vazirmatn", "IRANSansX", Tahoma, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 14px;
  padding: 0.85rem;
  margin: 1.25rem 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  clear: both;
}

/* Stay inside magazine content column; never spill into .skv-sidebar */
.skv-content .skbf-wrap,
.skv-layout--sidebar .skbf-wrap,
.entry-content .skbf-wrap,
.wp-block-post-content .skbf-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.skbf-wrap *,
.skbf-wrap *::before,
.skbf-wrap *::after {
  box-sizing: border-box;
  max-width: 100%;
}

.skbf-wrap--page {
  max-width: min(1100px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
}

/* Report route uses sazmankav page chrome; keep flipbook aligned with site content. */
.skbf-report-page .skbf-report-article {
  max-width: 1100px;
  margin-inline: auto;
}
.skbf-report-page .skbf-wrap--page {
  background: transparent;
  padding-inline: 0;
}

.skbf-wrap--embed {
  max-width: 100%;
}

.skbf-embed-head { margin-bottom: 0.75rem; text-align: center; }
.skbf-embed-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.5;
}
.skbf-full { text-align: center; margin: 0.75rem 0 0; }
.skbf-full a {
  color: var(--skbf-accent);
  font-weight: 700;
  text-decoration: none;
}
.skbf-full a:hover { text-decoration: underline; }
.skbf-error { color: #b42318; }

.skbf-stage {
  position: relative;
  background: #111827;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 39, 68, 0.14);
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 100%;
  max-height: min(480px, 56vw);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.skbf-wrap--page .skbf-stage {
  max-height: min(620px, 70vh);
}
.skbf-slide {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #111827;
  pointer-events: none;
  -webkit-user-drag: none;
}
.skbf-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.72);
  font-size: 0.95rem;
}
.skbf-loading.is-hidden { display: none; }

.skbf-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.skbf-btn {
  appearance: none;
  border: 1px solid var(--skbf-line);
  background: var(--skbf-card);
  color: var(--skbf-ink);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.skbf-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.skbf-btn:hover:not(:disabled) {
  border-color: var(--skbf-accent);
  color: var(--skbf-accent);
}
.skbf-counter {
  margin: 0;
  min-width: 4.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--skbf-muted);
  font-weight: 700;
}

@media (max-width: 720px) {
  .skbf-wrap { padding: 0.65rem; }
  .skbf-stage { max-height: min(360px, 58vw); }
  .skbf-btn { padding: 0.5rem 0.9rem; }
}
