/* ══════════════════════════════════════════════════════════════
   BLOCK EDITOR (Gutenberg) OUTPUT — core block classes
   Enqueued theme-wide since blocks can appear in any Page or Post
   via the_content(). Reuses existing design tokens only; matches
   the treatment already established for .bt-single-body /
   .bt-docs-content / .bt-page-content plain-tag styling.
   ══════════════════════════════════════════════════════════════ */

/* Wide / full alignment (requires add_theme_support('align-wide')) */
.alignwide { margin-left: -5%; margin-right: -5%; max-width: 1100px; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; width: 100vw; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 4px 20px 12px 0; }
.alignright { float: right; margin: 4px 0 12px 20px; }

/* Paragraph / headings spacing when rendered via the_content() */
.wp-block-heading { font-weight: 700; margin: 32px 0 12px; }

/* Image + Gallery */
.wp-block-image { margin: 16px 0; }
.wp-block-image img { border-radius: var(--r); display: block; max-width: 100%; height: auto; }
.wp-block-image figcaption,
.wp-block-gallery figcaption {
  font-size: 13px; color: var(--text3); text-align: center; margin-top: 8px; line-height: 1.5;
}
.wp-block-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 20px 0;
}
.wp-block-gallery .wp-block-image img { border-radius: var(--r-sm); }

/* Quote / pullquote — matches the existing blockquote treatment in
   .bt-single-body / .bt-docs-content */
.wp-block-quote,
blockquote.wp-block-quote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--surface2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text2);
  font-style: italic;
}
.wp-block-quote cite,
.wp-block-quote__citation { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: var(--text3); }
.wp-block-pullquote {
  border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  padding: 24px 0; margin: 32px 0; text-align: center;
}
.wp-block-pullquote blockquote { font-size: 20px; font-weight: 700; color: var(--text); font-style: normal; }
.wp-block-pullquote cite { display: block; margin-top: 10px; font-size: 13px; color: var(--text3); }

/* Table */
.wp-block-table table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.wp-block-table th,
.wp-block-table td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.wp-block-table th { background: var(--surface2); font-weight: 700; color: var(--text); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--surface2); }

/* Button block (WP core, distinct from the theme's .btn system —
   mapped to look identical to .btn.btn-primary) */
.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border: none; border-radius: var(--r);
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .15s; white-space: nowrap; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff; box-shadow: 0 4px 12px rgba(13, 107, 80, .2);
}
.wp-block-button__link:hover { opacity: .88; box-shadow: 0 6px 24px rgba(13, 107, 80, .32); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--accent); border: 1px solid var(--border2); box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--accent); }
.wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }

/* Columns */
.wp-block-columns { display: flex; gap: 32px; margin: 24px 0; flex-wrap: wrap; }
.wp-block-column { flex: 1; min-width: 220px; }

/* Separator / spacer */
.wp-block-separator { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* Embeds */
.wp-block-embed { margin: 24px 0; }
.wp-block-embed iframe { width: 100%; border-radius: var(--r); }
.wp-block-embed__wrapper { position: relative; }

/* Code / preformatted */
.wp-block-code,
.wp-block-preformatted {
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px; overflow-x: auto; margin: 20px 0; font-size: 13px;
}
.wp-block-code code { font-family: 'DM Mono', monospace; background: none; padding: 0; }

/* List */
.wp-block-list { padding-left: 24px; margin: 16px 0; color: var(--text2); line-height: 1.75; }

/* Cover block */
.wp-block-cover { border-radius: var(--r-lg); overflow: hidden; margin: 24px 0; }
