.betaczyt-v2 {
  --bc-border: rgba(20, 24, 32, 0.14);
  --bc-text-muted: rgba(20, 24, 32, 0.68);
  --bc-surface: #ffffff;
  --bc-surface-soft: #f7f7f5;
  --bc-accent: #171717;
  --bc-highlight: rgba(255, 238, 77, 0.78);
  --bc-audio-active: rgba(255, 238, 77, 0.18);
  --bc-entry-offset: 0px;
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-top: var(--bc-entry-offset);
  color: inherit;
  font: inherit;
}

.betaczyt-v2 [hidden] {
  display: none !important;
}

.betaczyt-v2 *,
.betaczyt-v2 *::before,
.betaczyt-v2 *::after {
  box-sizing: border-box;
}

.betaczyt-v2 .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.betaczyt-error {
  padding: 12px 14px;
  border: 1px solid #d63638;
  background: #fff5f5;
  color: #8a1f22;
}

.bc-v2-progress {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 4px;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.bc-v2-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: currentColor;
  transition: width 150ms linear;
}

.bc-v2-header {
  margin-bottom: 22px;
}

.betaczyt-v2 .bc-v2-instruction,
.betaczyt-v2 .bc-v2-title {
  max-width: 76ch;
  margin: 0 0 16px;
  color: var(--bc-text-muted);
  font-size: clamp(0.92rem, 1vw, 1rem);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
}

.bc-v2-audio-bar {
  position: sticky;
  top: 12px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  min-height: 48px;
  padding: 7px;
  border: 1px solid var(--bc-border);
  border-radius: 14px;
  background: var(--bc-surface);
  background: color-mix(in srgb, var(--bc-surface) 95%, transparent);
  box-shadow: 0 8px 28px rgba(20, 24, 32, 0.09);
  backdrop-filter: blur(12px);
}

.bc-v2-button,
.bc-v2-selection-menu button,
.bc-v2-resume button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--bc-border);
  border-radius: 9px;
  background: var(--bc-surface);
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.bc-v2-button:hover,
.bc-v2-button:focus-visible,
.bc-v2-selection-menu button:hover,
.bc-v2-selection-menu button:focus-visible,
.bc-v2-resume button:hover,
.bc-v2-resume button:focus-visible {
  border-color: currentColor;
  outline: none;
}

.bc-v2-button-primary {
  border-color: var(--bc-accent);
  background: var(--bc-accent);
  color: #fff;
}

.bc-v2-button[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.bc-v2-rate-label select {
  min-height: 36px;
  padding: 5px 28px 5px 9px;
  border: 1px solid var(--bc-border);
  border-radius: 9px;
  background: var(--bc-surface);
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
}

.bc-v2-track-name {
  max-width: 190px;
  overflow: hidden;
  color: var(--bc-text-muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-v2-time {
  color: var(--bc-text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  white-space: nowrap;
}

.bc-v2-ai-label {
  display: block;
  margin: 6px 0 0 8px;
  color: var(--bc-text-muted);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
}

.bc-v2-content {
  position: relative;
  color: inherit;
  font: inherit;
}

/*
 * Article presentation
 * --------------------
 * BetaCzyt keeps its own quiet controls, but the article should look like
 * the source post instead of a stripped text dump. Source Elementor/Gutenberg
 * styles are loaded by PHP; the rules below are safe fallbacks for classic
 * editor content and common WordPress alignment classes.
 */
.bc-v2-text {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(22px, 3.8vw, 46px);
  background: var(--bc-surface);
  color: inherit;
}

.bc-v2-text-body {
  display: flow-root;
  min-width: 0;
  font-size: clamp(1rem, 1.05vw, 1.075rem);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.bc-v2-text-body::after {
  content: "";
  display: table;
  clear: both;
}

.bc-v2-text-body :where(p) {
  margin-block: 0 1.35em;
}

.bc-v2-text-body :where(h1, h2, h3, h4, h5, h6) {
  clear: both;
  margin: 1.9em 0 0.75em;
  color: inherit;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.bc-v2-text-body :where(h1) { font-size: clamp(2rem, 4vw, 2.75rem); }
.bc-v2-text-body :where(h2) { font-size: clamp(1.65rem, 3vw, 2.15rem); }
.bc-v2-text-body :where(h3) { font-size: clamp(1.38rem, 2.4vw, 1.75rem); }
.bc-v2-text-body :where(h4) { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }
.bc-v2-text-body :where(h5) { font-size: clamp(1.08rem, 1.5vw, 1.25rem); }
.bc-v2-text-body :where(h6) { font-size: clamp(1rem, 1.25vw, 1.12rem); }

/* Decorative title/subtitle do not become audio sections. */
.bc-v2-text-body .bc-v2-decorative-title,
.bc-v2-text-body :is(p, div)[style*="text-align: center"]:has(> strong),
.bc-v2-text-body :is(p, div).has-text-align-center:has(> strong) {
  display: block !important;
  width: 100%;
  margin: 0 0 0.65em;
  font-size: clamp(1.85rem, 3.7vw, 2.45rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center !important;
  text-wrap: balance;
}

.bc-v2-text-body .bc-v2-decorative-subtitle,
.bc-v2-text-body :is(p, div)[style*="text-align: center"]:has(> em),
.bc-v2-text-body :is(p, div).has-text-align-center:has(> em) {
  display: block !important;
  width: 100%;
  margin: 0 0 2.25em;
  color: color-mix(in srgb, currentColor 82%, transparent);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  text-align: center !important;
  text-wrap: pretty;
}

.bc-v2-text-body :where(blockquote) {
  margin: 1.55em 0;
  padding: 0.45em 0 0.45em 1.35em;
  border: 0;
  border-left: 4px solid color-mix(in srgb, currentColor 11%, transparent);
  color: inherit;
  font-style: italic;
}

.bc-v2-text-body :where(blockquote p:last-child) {
  margin-bottom: 0;
}

.bc-v2-text-body :where(ul, ol) {
  margin: 0 0 1.35em 1.25em;
  padding-left: 1.1em;
}

.bc-v2-text-body :where(li + li) {
  margin-top: 0.35em;
}

.bc-v2-text-body :where(a) {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.bc-v2-text-body :where(img) {
  max-width: 100%;
  height: auto;
}

.bc-v2-text-body :where(figure) {
  max-width: 100%;
  margin: 1.6em auto;
}

.bc-v2-text-body :where(figcaption, .wp-caption-text) {
  margin-top: 0.55em;
  color: var(--bc-text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

/* Classic editor and Gutenberg image alignment: restore text wrapping. */
.bc-v2-text-body :is(img, figure, .wp-caption).alignleft,
.bc-v2-text-body a.alignleft,
.bc-v2-text-body a > img.alignleft {
  float: left;
  width: auto;
  max-width: min(48%, 430px);
  margin: 0.35em 1.55em 1em 0;
}

.bc-v2-text-body :is(img, figure, .wp-caption).alignright,
.bc-v2-text-body a.alignright,
.bc-v2-text-body a > img.alignright {
  float: right;
  width: auto;
  max-width: min(48%, 430px);
  margin: 0.35em 0 1em 1.55em;
}

.bc-v2-text-body :is(img, figure, .wp-caption).aligncenter,
.bc-v2-text-body a.aligncenter,
.bc-v2-text-body a > img.aligncenter {
  display: block;
  float: none;
  margin: 1.6em auto;
}

.bc-v2-text-body figure.alignleft > img,
.bc-v2-text-body figure.alignright > img,
.bc-v2-text-body .wp-caption.alignleft > img,
.bc-v2-text-body .wp-caption.alignright > img {
  display: block;
  width: 100%;
}

.bc-v2-text-body :where(.wp-block-image) {
  margin-block: 1.5em;
}

.bc-v2-text-body :where(.wp-block-columns) {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 34px);
  align-items: flex-start;
  margin-block: 1.8em;
}

.bc-v2-text-body :where(.wp-block-column) {
  flex: 1 1 240px;
  min-width: 0;
}

.bc-v2-text-body :where(.wp-block-media-text) {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin-block: 1.8em;
}

.bc-v2-text-body :where(.wp-block-media-text__media img) {
  display: block;
  width: 100%;
}

.bc-v2-text-body :where(.wp-block-table) {
  max-width: 100%;
  margin-block: 1.8em;
  overflow-x: auto;
}

.bc-v2-text-body :where(table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94em;
  line-height: 1.5;
}

.bc-v2-text-body :where(th, td) {
  padding: 0.7em 0.8em;
  border: 1px solid var(--bc-border);
  text-align: left;
  vertical-align: top;
}

.bc-v2-text-body :where(th) {
  background: var(--bc-surface-soft);
  font-weight: 700;
}

.bc-v2-text-body :where(hr) {
  clear: both;
  margin: 2.2em 0;
  border: 0;
  border-top: 1px solid var(--bc-border);
}

.bc-v2-text + .bc-v2-text {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bc-border);
}

.bc-v2-section-title {
  margin: 0 0 1.2em;
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
}

.bc-v2-text-body > :first-child {
  margin-top: 0;
}

.bc-v2-text-body > :last-child {
  margin-bottom: 0;
}

.bc-reading-block {
  position: relative;
  border-radius: 6px;
  scroll-margin-top: 110px;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.bc-reading-block.bc-audio-active {
  background: var(--bc-audio-active);
  box-shadow: -5px 0 0 rgba(220, 185, 0, 0.55);
}

mark.bc-user-highlight {
  padding: 0 0.04em;
  border-radius: 0.12em;
  background: var(--bc-highlight);
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  cursor: pointer;
}

mark.bc-user-highlight:hover {
  outline: 1px solid rgba(120, 102, 0, 0.42);
}

mark.bc-user-highlight-has-comment {
  box-shadow: inset 0 -2px 0 rgba(111, 78, 0, 0.55);
}

mark.bc-user-highlight-comment-tail::after {
  content: "✎";
  display: inline-grid;
  place-items: center;
  width: 1.28em;
  height: 1.28em;
  margin-left: 0.18em;
  border-radius: 50%;
  background: #252525;
  color: #fff;
  font-size: 0.72em;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.12em;
}

.bc-v2-selection-menu {
  position: fixed;
  z-index: 100001;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100vw - 16px);
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 11px;
  background: #191919;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.bc-v2-selection-menu[hidden] {
  display: none;
}

.bc-v2-selection-menu button {
  min-height: 32px;
  padding: 6px 9px;
  border-color: rgba(255, 255, 255, 0.22);
  background: #2a2a2a;
  color: #fff;
  font-size: 0.78rem;
  white-space: nowrap;
}

.bc-v2-feedback {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 12px;
  align-items: center;
  margin-top: 42px;
  padding: 18px;
  border: 1px solid var(--bc-border);
  border-radius: 14px;
  background: var(--bc-surface-soft);
}

.bc-v2-feedback[hidden] {
  display: none;
}

.bc-v2-feedback > span {
  color: var(--bc-text-muted);
  font-size: 0.9rem;
}

.bc-v2-feedback small {
  grid-column: 1 / -1;
  color: var(--bc-text-muted);
  line-height: 1.45;
}

.bc-v2-modal[hidden] {
  display: none;
}

.bc-v2-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.bc-v2-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.66);
  backdrop-filter: blur(3px);
}

.bc-v2-modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  color: #171717;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.bc-v2-modal-panel h2 {
  margin: 0 34px 8px 0;
  font-size: 1.45rem;
}

.bc-v2-modal-panel > p {
  color: #50545c;
  line-height: 1.5;
}

.bc-v2-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f0ed;
  color: #222;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.bc-v2-preview {
  max-height: 290px;
  margin: 18px 0;
  overflow: auto;
  border: 1px solid var(--bc-border);
  border-radius: 12px;
  background: #fbfbf8;
}

.bc-v2-preview ol {
  margin: 0;
  padding: 12px 18px 12px 42px;
}

.bc-v2-preview li + li {
  margin-top: 10px;
}

.bc-v2-preview blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: #282b30;
  font-size: 0.94rem;
  line-height: 1.5;
}

.bc-v2-preview-comment {
  margin-top: 8px;
  padding: 9px 11px;
  border-left: 3px solid #c38a00;
  border-radius: 5px;
  background: #fff7db;
  color: #34312a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.bc-v2-preview-comment p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}

.bc-v2-comment-panel {
  width: min(590px, 100%);
}

.bc-v2-comment-help {
  margin-bottom: 14px;
}

.bc-v2-comment-quote {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #e1dccd;
  border-left: 4px solid #dba617;
  border-radius: 10px;
  background: #fffbea;
  color: #2c2b27;
  font-size: 0.94rem;
  line-height: 1.55;
}

.bc-v2-comment-actions {
  align-items: center;
}

.bc-v2-modal-spacer {
  flex: 1;
}

.bc-v2-button-danger {
  border-color: #c92a2a !important;
  background: #fff !important;
  color: #a61e1e !important;
}

.bc-v2-button-danger:hover,
.bc-v2-button-danger:focus-visible {
  background: #fff2f2 !important;
}

.bc-v2-note-label {
  display: grid;
  gap: 7px;
  font-weight: 650;
}

.bc-v2-note-label em {
  color: #696d74;
  font-size: 0.88em;
  font-weight: 400;
}

.bc-v2-note-label textarea {
  width: 100%;
  min-height: 108px;
  padding: 10px 12px;
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-weight: 400;
  resize: vertical;
}

.bc-v2-privacy {
  margin: 10px 0 0;
  font-size: 0.86rem;
}

.bc-v2-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.bc-v2-send-status {
  min-height: 1.35em;
  margin-top: 9px;
  color: #8a1f22;
  font-size: 0.9rem;
  text-align: right;
}

body.bc-v2-modal-open {
  overflow: hidden;
}

.bc-v2-resume,
.bc-v2-toast {
  position: fixed;
  z-index: 99990;
  right: 18px;
  bottom: 18px;
  max-width: min(430px, calc(100vw - 36px));
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #191919;
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  font-size: 0.88rem;
}

.bc-v2-resume[hidden],
.bc-v2-toast[hidden] {
  display: none;
}

.bc-v2-resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.bc-v2-resume span {
  margin-right: 4px;
}

.bc-v2-resume button {
  min-height: 30px;
  padding: 4px 8px;
  border-color: rgba(255, 255, 255, 0.22);
  background: #2a2a2a;
  color: #fff;
  font-size: 0.78rem;
}

.bc-v2-toast {
  pointer-events: none;
}

@media (max-width: 720px) {
  .betaczyt-v2 {
    max-width: 100%;
  }

  .bc-v2-text {
    max-width: 100%;
    padding: 22px 18px 30px;
  }

  .bc-v2-text-body :is(img, figure, .wp-caption).alignleft,
  .bc-v2-text-body :is(img, figure, .wp-caption).alignright,
  .bc-v2-text-body a.alignleft,
  .bc-v2-text-body a.alignright,
  .bc-v2-text-body a > img.alignleft,
  .bc-v2-text-body a > img.alignright {
    display: block;
    float: none;
    width: auto;
    max-width: 100%;
    margin: 1.35em auto;
  }

  .bc-v2-text-body :where(.wp-block-media-text) {
    grid-template-columns: 1fr;
  }

  .bc-v2-audio-bar {
    top: 6px;
    width: 100%;
    border-radius: 12px;
  }

  .bc-v2-audio-bar .bc-v2-track-name {
    display: none;
  }

  .bc-v2-audio-bar .bc-v2-time {
    margin-left: auto;
  }

  .bc-v2-button span {
    display: inline;
  }

  .bc-v2-feedback {
    grid-template-columns: 1fr;
  }

  .bc-v2-feedback small {
    grid-column: 1;
  }

  .bc-v2-modal-panel {
    padding: 20px 16px;
  }

  .bc-v2-modal-actions {
    flex-direction: column-reverse;
  }

  .bc-v2-modal-actions .bc-v2-button {
    width: 100%;
  }

  .bc-v2-modal-spacer {
    display: none;
  }
}

@media (max-width: 460px) {
  .bc-v2-audio-bar {
    flex-wrap: wrap;
  }

  .bc-v2-audio-bar .bc-v2-time {
    width: 100%;
    margin-left: 0;
    padding: 0 4px;
  }

  .bc-v2-selection-menu {
    overflow-x: auto;
  }
}

@media (prefers-color-scheme: dark) {
  .betaczyt-v2 {
    --bc-border: rgba(255, 255, 255, 0.18);
    --bc-text-muted: rgba(255, 255, 255, 0.7);
    --bc-surface: #202124;
    --bc-surface-soft: #27282c;
    --bc-accent: #f3f3f3;
    --bc-audio-active: rgba(255, 238, 77, 0.12);
  }

  .betaczyt-v2 .bc-v2-button-primary {
    color: #111;
  }
}

@media (prefers-reduced-motion: reduce) {
  .betaczyt-v2 *,
  .betaczyt-v2 *::before,
  .betaczyt-v2 *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/*
 * BetaCzyt 2.8 — deterministic source-post presentation
 * -----------------------------------------------------
 * Elementor may keep the title and subtitle in one widget-level div and may
 * supply image floats only from the source post stylesheet. The PHP parser
 * marks those structures explicitly so the reader does not depend on a
 * particular Elementor version or theme selector.
 */
.bc-v2-text-body .bc-v2-decorative-title,
.bc-v2-text-body .bc-v2-decorative-subtitle,
.bc-v2-text-body .bc-v2-decorative-combined {
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  text-align: center !important;
}

.bc-v2-text-body .bc-v2-decorative-title:not(.bc-v2-decorative-combined) {
  display: block !important;
  margin: 0 0 0.55em !important;
  font-size: clamp(1.95rem, 3.8vw, 2.55rem) !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
  text-wrap: balance;
}

.bc-v2-text-body .bc-v2-decorative-subtitle:not(.bc-v2-decorative-combined) {
  display: block !important;
  margin: 0 0 2.25em !important;
  color: color-mix(in srgb, currentColor 82%, transparent) !important;
  font-size: clamp(1rem, 1.55vw, 1.18rem) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-wrap: pretty;
}

.bc-v2-text-body .bc-v2-decorative-combined {
  display: block !important;
  margin: 0 0 2.25em !important;
}

.bc-v2-text-body .bc-v2-decorative-combined :is(strong, b):first-of-type {
  display: block !important;
  margin: 0 0 0.7em !important;
  font-size: clamp(1.95rem, 3.8vw, 2.55rem) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
  text-align: center !important;
  text-wrap: balance;
}

.bc-v2-text-body .bc-v2-decorative-combined :is(em, i):first-of-type {
  display: block !important;
  margin: 0 !important;
  color: color-mix(in srgb, currentColor 82%, transparent) !important;
  font-size: clamp(1rem, 1.55vw, 1.18rem) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  text-wrap: pretty;
}

/* Support either spacing form in inline text-align declarations. */
.bc-v2-text-body :is(p, div)[style*="text-align:center"]:has(> strong),
.bc-v2-text-body :is(p, div)[style*="text-align:center"]:has(> b) {
  display: block !important;
  width: 100% !important;
  margin: 0 0 0.55em !important;
  font-size: clamp(1.95rem, 3.8vw, 2.55rem) !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
  text-align: center !important;
}

.bc-v2-text-body :is(p, div)[style*="text-align:center"]:has(> em),
.bc-v2-text-body :is(p, div)[style*="text-align:center"]:has(> i) {
  display: block !important;
  width: 100% !important;
  margin: 0 0 2.25em !important;
  font-size: clamp(1rem, 1.55vw, 1.18rem) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* Explicit alignment classes added by the PHP DOM pass. */
.bc-v2-text-body .bc-v2-media-align-left {
  display: block !important;
  float: left !important;
  width: auto !important;
  max-width: min(48%, 430px) !important;
  margin: 0.35em 1.55em 1em 0 !important;
}

.bc-v2-text-body .bc-v2-media-align-right {
  display: block !important;
  float: right !important;
  width: auto !important;
  max-width: min(48%, 430px) !important;
  margin: 0.35em 0 1em 1.55em !important;
}

.bc-v2-text-body .bc-v2-media-align-center {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 1.6em auto !important;
}

.bc-v2-text-body :is(.bc-v2-media-align-left, .bc-v2-media-align-right, .bc-v2-media-align-center) img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

/* Elementor/Text Editor variants seen in real posts. */
.bc-v2-text-body .elementor-widget-text-editor img[style*="float:left"],
.bc-v2-text-body .elementor-widget-text-editor img[style*="float: left"],
.bc-v2-text-body .elementor-widget-text-editor .alignleft {
  float: left !important;
  max-width: min(48%, 430px) !important;
  margin: 0.35em 1.55em 1em 0 !important;
}

.bc-v2-text-body .elementor-widget-text-editor img[style*="float:right"],
.bc-v2-text-body .elementor-widget-text-editor img[style*="float: right"],
.bc-v2-text-body .elementor-widget-text-editor .alignright {
  float: right !important;
  max-width: min(48%, 430px) !important;
  margin: 0.35em 0 1em 1.55em !important;
}

.bc-v2-text-body > .elementor,
.bc-v2-text-body > [data-elementor-type] {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 720px) {
  .bc-v2-text-body .bc-v2-media-align-left,
  .bc-v2-text-body .bc-v2-media-align-right,
  .bc-v2-text-body .bc-v2-media-align-center,
  .bc-v2-text-body .elementor-widget-text-editor img[style*="float:left"],
  .bc-v2-text-body .elementor-widget-text-editor img[style*="float: left"],
  .bc-v2-text-body .elementor-widget-text-editor img[style*="float:right"],
  .bc-v2-text-body .elementor-widget-text-editor img[style*="float: right"],
  .bc-v2-text-body .elementor-widget-text-editor .alignleft,
  .bc-v2-text-body .elementor-widget-text-editor .alignright {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 1.35em auto !important;
  }
}

/* -------------------------------------------------------------------------
 * 2.9: visible but unobtrusive help while the reader scrolls
 * ---------------------------------------------------------------------- */

.betaczyt-v2 .bc-v2-instruction {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: min(100%, 76ch);
  max-width: 76ch;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #b42318 28%, var(--bc-border));
  border-left: 4px solid #b42318;
  border-radius: 11px;
  background: color-mix(in srgb, #fff1ef 82%, var(--bc-surface));
  color: color-mix(in srgb, #7a1f18 82%, currentColor);
  font-size: clamp(0.93rem, 1vw, 1rem);
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.bc-v2-instruction-icon {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1.35;
}

.bc-v2-instruction-text {
  min-width: 0;
}

.bc-v2-instruction--attention {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, #b42318 18%, transparent), 0 12px 30px rgba(20, 24, 32, 0.12);
  transform: translateY(-1px);
}

.bc-v2-audio-placeholder {
  display: block;
  width: 100%;
  height: 0;
  transition: height 120ms ease;
}

.bc-v2-dock-toggle {
  appearance: none;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--bc-border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--bc-surface) 94%, transparent);
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.bc-v2-dock-toggle:hover,
.bc-v2-dock-toggle:focus-visible {
  border-color: currentColor;
  outline: none;
}

.bc-v2-audio-bar.bc-v2-audio-bar--floating {
  position: fixed;
  top: var(--bc-dock-top, 8px);
  left: 50%;
  z-index: 99990;
  width: auto;
  max-width: calc(100vw - 24px);
  margin: 0;
  transform: translateX(-50%);
  border-color: color-mix(in srgb, var(--bc-accent) 22%, var(--bc-border));
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(15, 20, 30, 0.2);
}

.bc-v2-audio-bar--floating .bc-v2-audio-toggle {
  display: inline-flex;
}

/* The floating audio bar starts in a compact form. */
.bc-v2-audio-bar--floating:not(.bc-v2-audio-bar--expanded) [data-bc-restart],
.bc-v2-audio-bar--floating:not(.bc-v2-audio-bar--expanded) .bc-v2-rate-label,
.bc-v2-audio-bar--floating:not(.bc-v2-audio-bar--expanded) .bc-v2-track-name {
  display: none !important;
}

.bc-v2-audio-bar--floating:not(.bc-v2-audio-bar--expanded) {
  gap: 6px;
  min-height: 44px;
  padding: 5px 6px;
}

.bc-v2-audio-bar--floating:not(.bc-v2-audio-bar--expanded) .bc-v2-button {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
}

.bc-v2-audio-bar--floating:not(.bc-v2-audio-bar--expanded) .bc-v2-time {
  padding-inline: 2px;
}

.bc-v2-feedback {
  position: relative;
}

.bc-v2-feedback--empty .bc-v2-button-primary {
  border-color: #b42318;
  background: #b42318;
  color: #fff;
}

.bc-v2-feedback--docked {
  position: fixed;
  right: auto;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 99988;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  width: min(820px, calc(100vw - 24px));
  max-width: min(820px, calc(100vw - 24px));
  min-height: 52px;
  margin: 0;
  padding: 7px;
  transform: translateX(-50%);
  border-color: color-mix(in srgb, var(--bc-accent) 20%, var(--bc-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--bc-surface) 96%, transparent);
  box-shadow: 0 12px 38px rgba(15, 20, 30, 0.2);
  backdrop-filter: blur(14px);
}

.bc-v2-feedback--docked > span {
  min-width: 0;
  overflow: hidden;
  flex: 1 1 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-v2-feedback--docked small {
  display: none;
}

.bc-v2-feedback--docked .bc-v2-feedback-toggle {
  display: inline-flex;
  order: 10;
}

.bc-v2-feedback--docked .bc-v2-button-primary {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 10px;
  white-space: nowrap;
}

.bc-v2-feedback--docked.bc-v2-feedback--attention {
  animation: bc-feedback-attention 650ms ease-out 1;
}

@keyframes bc-feedback-attention {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  35% { transform: translateX(-50%) translateY(-5px) scale(1.015); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}

/* A highly compact bubble remains available after the user deliberately collapses it. */
.bc-v2-feedback--docked.bc-v2-feedback--collapsed {
  left: auto;
  right: 12px;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  min-height: 48px;
  padding: 5px;
  transform: none;
  border-radius: 999px;
}

.bc-v2-feedback--docked.bc-v2-feedback--collapsed > :not(.bc-v2-feedback-toggle) {
  display: none !important;
}

.bc-v2-feedback--collapsed .bc-v2-feedback-toggle {
  position: relative;
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--bc-accent);
  color: #fff;
}

.bc-v2-feedback--collapsed .bc-v2-feedback-toggle[data-bc-count]:not([data-bc-count="0"])::after {
  content: attr(data-bc-count);
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid var(--bc-surface);
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.betaczyt-v2.bc-v2-has-feedback-dock {
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

.betaczyt-v2 :is([data-bc-block], .bc-reading-block) {
  scroll-margin-top: calc(var(--bc-dock-top, 8px) + 68px);
}

@media (max-width: 720px) {
  .betaczyt-v2 .bc-v2-instruction {
    gap: 9px;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 0.92rem;
  }

  .bc-v2-audio-bar.bc-v2-audio-bar--floating {
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    transform: none;
  }

  .bc-v2-audio-bar--floating:not(.bc-v2-audio-bar--expanded) .bc-v2-button span {
    display: none;
  }

  .bc-v2-audio-bar--floating:not(.bc-v2-audio-bar--expanded) .bc-v2-time {
    width: auto;
    margin-left: auto;
    padding: 0 2px;
  }

  .bc-v2-audio-bar--floating.bc-v2-audio-bar--expanded {
    flex-wrap: wrap;
    border-radius: 14px;
  }

  .bc-v2-audio-bar--floating.bc-v2-audio-bar--expanded .bc-v2-track-name {
    display: none;
  }

  .bc-v2-feedback--docked {
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    min-height: 50px;
    transform: none;
    border-radius: 12px;
  }

  .bc-v2-feedback--docked > span {
    font-size: 0.78rem;
  }

  .bc-v2-feedback--docked .bc-v2-button-primary {
    max-width: 58vw;
    overflow: hidden;
    padding-inline: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bc-v2-feedback--docked.bc-v2-feedback--empty > span {
    display: none;
  }

  .bc-v2-feedback--docked.bc-v2-feedback--collapsed {
    right: 8px;
    left: auto;
  }

  .betaczyt-v2.bc-v2-has-feedback-dock {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 430px) {
  .bc-v2-audio-bar--floating.bc-v2-audio-bar--expanded .bc-v2-time {
    width: 100%;
    padding-inline: 5px;
  }

  .bc-v2-feedback--docked .bc-v2-button-primary {
    max-width: calc(100vw - 122px);
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-v2-feedback--docked.bc-v2-feedback--attention {
    animation: none;
  }

  .bc-v2-instruction--attention {
    transform: none;
  }
}

@media (prefers-color-scheme: dark) {
  .betaczyt-v2 .bc-v2-instruction {
    border-color: color-mix(in srgb, #ff8a80 48%, var(--bc-border));
    border-left-color: #ff8a80;
    background: color-mix(in srgb, #431b19 58%, var(--bc-surface));
    color: color-mix(in srgb, #ffd7d2 86%, currentColor);
  }

  .bc-v2-feedback--empty .bc-v2-button-primary {
    border-color: #d85d52;
    background: #a6352c;
  }
}

/* -------------------------------------------------------------------------
 * 2.10: deterministic preservation of inline typography and image wrapping
 * ---------------------------------------------------------------------- */

/* Source text-align values are converted to classes in PHP before rendering. */
.bc-v2-text-body .bc-v2-align-left {
  text-align: left !important;
}

.bc-v2-text-body .bc-v2-align-center {
  text-align: center !important;
}

.bc-v2-text-body .bc-v2-align-right {
  text-align: right !important;
}

.bc-v2-text-body .bc-v2-align-justify {
  text-align: justify !important;
}

/*
 * Visual headings inferred from font-size remain DIV/P elements. They do not
 * become semantic H tags and therefore do not create extra audio sections.
 */
.bc-v2-text-body .bc-v2-visual-h5 {
  display: block !important;
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0.55em !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
  text-wrap: balance;
}

.bc-v2-text-body .bc-v2-visual-h6 {
  display: block !important;
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0.65em !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  text-wrap: balance;
}

.bc-v2-text-body .bc-v2-font-size-18 {
  font-size: 18px !important;
}

.bc-v2-text-body .bc-v2-font-bold {
  font-weight: 700 !important;
}

.bc-v2-text-body .bc-v2-font-italic {
  font-style: italic !important;
}

.bc-v2-text-body .bc-v2-leading-tight {
  line-height: 1.2 !important;
}

.bc-v2-text-body .bc-v2-space-after-large {
  margin-bottom: 35px !important;
}

/*
 * Empty classic-editor image paragraphs are floated as wrappers. This is more
 * reliable than floating only IMG, because some Elementor/theme rules reset
 * the image display or establish a new formatting context.
 */
.bc-v2-text-body p.bc-v2-media-empty-wrapper.bc-v2-media-align-left,
.bc-v2-text-body figure.bc-v2-media-align-left,
.bc-v2-text-body .wp-caption.bc-v2-media-align-left {
  display: block !important;
  float: left !important;
  clear: none !important;
  width: min(var(--bc-media-width, 430px), 48%) !important;
  max-width: 48% !important;
  margin: 0.35em 1.55em 1em 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.bc-v2-text-body p.bc-v2-media-empty-wrapper.bc-v2-media-align-right,
.bc-v2-text-body figure.bc-v2-media-align-right,
.bc-v2-text-body .wp-caption.bc-v2-media-align-right {
  display: block !important;
  float: right !important;
  clear: none !important;
  width: min(var(--bc-media-width, 430px), 48%) !important;
  max-width: 48% !important;
  margin: 0.35em 0 1em 1.55em !important;
  padding: 0 !important;
  overflow: visible !important;
}

.bc-v2-text-body p.bc-v2-media-empty-wrapper.bc-v2-media-align-center {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 1.6em auto !important;
  padding: 0 !important;
}

.bc-v2-text-body p.bc-v2-media-empty-wrapper > img,
.bc-v2-text-body p.bc-v2-media-empty-wrapper > a > img {
  display: block !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

/* Direct-image fallback when no usable wrapper exists. */
.bc-v2-text-body img.bc-v2-image-align-left {
  display: block !important;
  float: left !important;
  clear: none !important;
  width: auto !important;
  max-width: min(48%, 430px) !important;
  height: auto !important;
  margin: 0.35em 1.55em 1em 0 !important;
}

.bc-v2-text-body img.bc-v2-image-align-right {
  display: block !important;
  float: right !important;
  clear: none !important;
  width: auto !important;
  max-width: min(48%, 430px) !important;
  height: auto !important;
  margin: 0.35em 0 1em 1.55em !important;
}

.bc-v2-text-body img.bc-v2-image-align-center {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 1.6em auto !important;
}

/* Prevent double floating when both wrapper and image carry fallback classes. */
.bc-v2-text-body .bc-v2-media-align-left > img.bc-v2-image-align-left,
.bc-v2-text-body .bc-v2-media-align-right > img.bc-v2-image-align-right,
.bc-v2-text-body .bc-v2-media-align-center > img.bc-v2-image-align-center {
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

/* The paragraph after a floated image must remain eligible to wrap around it. */
.bc-v2-text-body .bc-v2-media-empty-wrapper + p,
.bc-v2-text-body img.bc-v2-image-align-left + p,
.bc-v2-text-body img.bc-v2-image-align-right + p {
  clear: none !important;
}

@media (max-width: 720px) {
  .bc-v2-text-body .bc-v2-visual-h5 {
    font-size: clamp(1.7rem, 8vw, 2rem) !important;
  }

  .bc-v2-text-body .bc-v2-visual-h6 {
    font-size: 1.18rem !important;
  }

  .bc-v2-text-body p.bc-v2-media-empty-wrapper.bc-v2-media-align-left,
  .bc-v2-text-body p.bc-v2-media-empty-wrapper.bc-v2-media-align-right,
  .bc-v2-text-body p.bc-v2-media-empty-wrapper.bc-v2-media-align-center,
  .bc-v2-text-body img.bc-v2-image-align-left,
  .bc-v2-text-body img.bc-v2-image-align-right,
  .bc-v2-text-body img.bc-v2-image-align-center {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 1.35em auto !important;
  }
}
