/* Stack block — background theme overrides and embed support. */

/* Dark / brand mode — invert text colours for stack items.
   Overrides the hardcoded gray-900 / prose-gray classes
   set inside lcms_render_stack_item(). */
.block-stack--dark .font-heading,
.block-stack--brand .font-heading {
    color: #fff;
}

.block-stack--dark .prose,
.block-stack--brand .prose {
    color: rgba(255, 255, 255, 0.9);
}

.block-stack--dark .text-gray-500,
.block-stack--brand .text-gray-500 {
    color: rgba(255, 255, 255, 0.65);
}

.block-stack--dark .text-gray-400,
.block-stack--brand .text-gray-400 {
    color: rgba(255, 255, 255, 0.5);
}

/* HTML embed — responsive iframe wrapper */
.stack__html iframe {
    max-width: 100%;
    border-radius: var(--border-radius, 8px);
}

.stack__html iframe:only-child {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}
