/* Public Action Text oEmbed — shared across root + MH rich-text bodies */

.trix-content action-text-attachment:has(.embed),
.trix-content .attachment--embed {
  display: block;
  width: 100%;
  margin: 1.25em 0 0;
}

.trix-content .embed {
  display: block;
  width: 100%;
  overflow: hidden;
  border: var(--action-text-embed-border, 1px solid transparent);
  border-radius: var(--action-text-embed-radius, 2px);
  background: var(--action-text-embed-bg, transparent);
}

/* Video / iframe providers — full width, 16:9 */
.trix-content .embed.embed--video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.trix-content .embed.embed--video iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border: 0;
}

.trix-content .embed.embed--twitter {
  background: transparent;
  overflow: visible;
}

.trix-content .embed.embed--twitter .twitter-tweet {
  margin: 0 auto !important;
}

/* Twitter/X blockquote before widgets.js hydration */
.trix-content .embed blockquote.twitter-tweet {
  margin: 0 !important;
  max-width: 100% !important;
  border: 0;
  padding: 0.75rem 1rem;
  font-size: inherit;
  line-height: 1.45;
}
