.fx-heading {
    margin-block: 0;
    overflow-wrap: anywhere;
}

.fx-heading > a {
    color: inherit;
    text-decoration: inherit;
}

.fx-heading > a:focus-visible {
    border-radius: .12em;
    outline: 3px solid var(--fluxyon-cyan, #63f4ff);
    outline-offset: .16em;
}

.fx-rich-text {
    min-width: 0;
    color: inherit;
}

.fx-rich-text > :first-child {
    margin-block-start: 0;
}

.fx-rich-text > :last-child {
    margin-block-end: 0;
}

.fx-rich-text p,
.fx-rich-text li {
    line-height: inherit;
}

.fx-rich-text ul,
.fx-rich-text ol {
    padding-inline-start: 1.5em;
}

.fx-rich-text blockquote {
    margin-inline: 0;
    padding: 1em 1.15em;
    border-inline-start: 3px solid var(--fluxyon-cyan, #63f4ff);
    border-radius: 0 14px 14px 0;
    background: rgba(99, 244, 255, .06);
}

.fx-rich-text code,
.fx-rich-text pre {
    border: 1px solid rgba(99, 244, 255, .16);
    border-radius: 10px;
    background: rgba(2, 8, 18, .72);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.fx-rich-text code {
    padding: .12em .35em;
}

.fx-rich-text pre {
    max-width: 100%;
    padding: 1em;
    overflow: auto;
    white-space: pre-wrap;
}

.fx-rich-columns-2,
.fx-rich-columns-3,
.fx-rich-columns-4 {
    column-gap: clamp(20px, 3vw, 42px);
}

.fx-rich-columns-2 { column-count: 2; }
.fx-rich-columns-3 { column-count: 3; }
.fx-rich-columns-4 { column-count: 4; }

.fx-rich-drop-cap > p:first-child::first-letter {
    float: inline-start;
    margin-inline-end: .12em;
    color: var(--fluxyon-cyan, #63f4ff);
    font-size: 3.4em;
    font-weight: 800;
    line-height: .85;
    text-shadow: 0 0 20px rgba(99, 244, 255, .36);
}

.fx-button {
    display: inline-flex;
    gap: .6em;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
}

.fx-button-small {
    min-height: 38px;
    padding: 9px 16px;
    font-size: 14px;
}

.fx-button-medium {
    min-height: 48px;
    padding: 13px 22px;
    font-size: 16px;
}

.fx-button-large {
    min-height: 58px;
    padding: 16px 28px;
    font-size: 18px;
}

.fx-button-gradient {
    background: linear-gradient(135deg, #00c9ef, #6758ff);
    box-shadow: 0 0 30px rgba(0, 217, 255, .27);
}

.fx-button-solid {
    background: #119fc4;
    box-shadow: 0 14px 30px rgba(17, 159, 196, .22);
}

.fx-button-outline {
    border-color: rgba(99, 244, 255, .72);
    color: var(--fluxyon-cyan, #63f4ff);
    background: rgba(7, 24, 40, .42);
    box-shadow: inset 0 0 20px rgba(99, 244, 255, .07);
}

.fx-button-ghost {
    color: var(--fluxyon-cyan, #63f4ff);
    background: transparent;
}

.fx-button-icon-start { flex-direction: row; }
.fx-button-icon-end { flex-direction: row; }
.fx-button-full { display: flex; width: 100%; }

.fx-button-icon {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
}

.fx-button:hover:not(.is-disabled):not([disabled]) {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 38px rgba(0, 217, 255, .38);
}

.fx-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.fx-button.is-disabled,
.fx-button[disabled],
.fx-button[aria-disabled="true"] {
    opacity: .48;
    cursor: not-allowed;
    filter: grayscale(.25);
    pointer-events: none;
}

.fx-rich-editor-shell {
    overflow: hidden;
    border: 1px solid rgba(99, 244, 255, .18);
    border-radius: 14px;
    background: rgba(3, 10, 21, .72);
}

.fx-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px;
    border-bottom: 1px solid rgba(99, 244, 255, .12);
    background: rgba(99, 244, 255, .035);
}

.fx-rich-toolbar button {
    min-width: 32px;
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid rgba(99, 244, 255, .14);
    border-radius: 8px;
    color: #dffaff;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
}

.fx-rich-toolbar button:hover,
.fx-rich-toolbar button:focus-visible {
    border-color: rgba(99, 244, 255, .52);
    background: rgba(99, 244, 255, .12);
}

.fx-rich-editor {
    min-height: 180px;
    max-height: 420px;
    padding: 16px;
    overflow: auto;
    color: #d9eef6;
    line-height: 1.65;
    outline: none;
}

.fx-rich-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(99, 244, 255, .28);
}

.fx-widget-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fx-widget-preview-note {
    margin: 8px 0 0;
    color: var(--fx-muted, #91b3c1);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .fx-rich-columns-2,
    .fx-rich-columns-3,
    .fx-rich-columns-4 {
        column-count: 1;
    }

    .fx-widget-options-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-button {
        transition: none !important;
    }
}

.fx-image {
    display: block;
    margin: 0;
}

.fx-image-media,
.fx-image-link {
    display: block;
    width: 100%;
}

.fx-image-link {
    color: inherit;
    text-decoration: none;
}

.fx-image-element {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: inherit;
    object-position: inherit;
}

.fx-image-placeholder {
    display: grid;
    min-height: 180px;
    place-items: center;
    gap: 10px;
    padding: 28px;
    border: 1px dashed rgba(99, 244, 255, .34);
    border-radius: 0;
    color: var(--fluxyon-cyan, #63f4ff);
    background:
        linear-gradient(135deg, rgba(99, 244, 255, .06), rgba(103, 88, 255, .08)),
        rgba(3, 10, 21, .72);
    text-align: center;
}

.fx-image-placeholder .fx-icon-svg {
    width: 46px;
    height: 46px;
}

.fx-image-caption {
    margin-top: 10px;
    color: var(--fx-muted, #91b3c1);
    font-size: .88em;
    line-height: 1.5;
    text-align: center;
}

.fx-image-link:focus-visible,
.fx-icon:focus-visible {
    border-radius: 14px;
    outline: 3px solid var(--fluxyon-cyan, #63f4ff);
    outline-offset: 4px;
}

.fx-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.fx-icon-graphic,
.fx-icon-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.fx-icon-graphic > svg {
    width: 100%;
    height: 100%;
}

.fx-icon-source-custom svg {
    overflow: visible;
}

.fx-icon-library-preview {
    display: grid;
    width: 82px;
    height: 82px;
    margin: 0 auto 16px;
    place-items: center;
    border: 1px solid rgba(99, 244, 255, .24);
    border-radius: 22px;
    color: var(--fluxyon-cyan, #63f4ff);
    background: linear-gradient(135deg, rgba(99, 244, 255, .08), rgba(103, 88, 255, .12));
    box-shadow: inset 0 0 24px rgba(99, 244, 255, .05);
}

.fx-icon-library-preview svg {
    width: 44px;
    height: 44px;
}

.fx-divider {
    --fx-divider-thickness: 1px;
    --fx-divider-length: 100%;
    --fx-divider-color: rgba(93, 226, 255, .42);
    --fx-divider-style: solid;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-width: 1px;
}

.fx-divider-line {
    flex: 1 1 auto;
    max-width: var(--fx-divider-length);
    border-color: var(--fx-divider-color);
    border-style: var(--fx-divider-style);
    border-width: var(--fx-divider-thickness) 0 0;
}

.fx-divider-content {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: var(--fx-divider-color);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fx-divider-content .fx-icon-svg {
    width: 1.25em;
    height: 1.25em;
}

.fx-divider-align-start .fx-divider-line:first-child,
.fx-divider-align-end .fx-divider-line:last-child {
    flex-grow: .18;
}

.fx-divider-vertical {
    width: auto;
    min-height: var(--fx-divider-length);
    flex-direction: column;
}

.fx-divider-vertical .fx-divider-line {
    width: 0;
    min-height: 20px;
    max-height: var(--fx-divider-length);
    border-width: 0 0 0 var(--fx-divider-thickness);
}

.fx-spacer {
    position: relative;
    display: block;
    min-width: 1px;
    min-height: 1px;
}

.fx-spacer-horizontal {
    display: inline-block;
    width: 48px;
    height: 1px;
}

.fluxyon-editor .fx-spacer-guide {
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px dashed rgba(99, 244, 255, .24);
    opacity: .72;
    pointer-events: none;
}

.fluxyon-editor .fx-spacer-horizontal .fx-spacer-guide {
    inset: 0 auto 0 50%;
    border-top: 0;
    border-left: 1px dashed rgba(99, 244, 255, .24);
}

@media (prefers-reduced-motion: reduce) {
    .fx-image-link,
    .fx-icon {
        transition: none !important;
    }
}


/* Media playback and maps */
.fx-video,
.fx-map {
    position: relative;
    min-width: 0;
    isolation: isolate;
}

.fx-video-element,
.fx-video-frame,
.fx-map-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
    border-radius: inherit;
    background: #030812;
}

.fx-video-element {
    object-fit: cover;
}

.fx-video-placeholder,
.fx-audio-placeholder,
.fx-consent-gate,
.fx-map-editor-preview {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 220px;
    padding: 28px;
    gap: 12px;
    text-align: center;
    color: #dffaff;
    border: 1px dashed rgba(93, 226, 255, 0.34);
    border-radius: inherit;
    background:
        radial-gradient(circle at 50% 20%, rgba(93, 226, 255, 0.14), transparent 42%),
        linear-gradient(145deg, rgba(6, 16, 34, 0.96), rgba(2, 7, 17, 0.98));
}

.fx-video-placeholder .fx-icon-svg,
.fx-audio-placeholder .fx-icon-svg,
.fx-consent-gate .fx-icon-svg,
.fx-map-editor-preview .fx-icon-svg {
    width: 46px;
    height: 46px;
    color: #5de2ff;
    filter: drop-shadow(0 0 18px rgba(93, 226, 255, 0.48));
}

.fx-consent-gate strong {
    font-size: 1.05rem;
}

.fx-consent-gate p {
    max-width: 46ch;
    margin: 0;
    color: rgba(223, 250, 255, 0.72);
}

.fx-consent-button,
.fx-audio-transport button,
.fx-audio-playlist button {
    appearance: none;
    border: 1px solid rgba(93, 226, 255, 0.34);
    color: #e9fcff;
    background: rgba(93, 226, 255, 0.08);
    cursor: pointer;
}

.fx-consent-button {
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
}

.fx-consent-button:hover,
.fx-consent-button:focus-visible,
.fx-audio-transport button:hover,
.fx-audio-transport button:focus-visible,
.fx-audio-playlist button:hover,
.fx-audio-playlist button:focus-visible {
    border-color: #5de2ff;
    outline: 2px solid rgba(93, 226, 255, 0.24);
    outline-offset: 2px;
}

.fx-audio {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.fx-audio-now {
    display: grid;
    gap: 3px;
}

.fx-audio-now strong {
    color: #f1fdff;
}

.fx-audio-now span {
    color: rgba(217, 238, 246, 0.68);
    font-size: 0.9rem;
}

.fx-audio-element {
    width: 100%;
}

.fx-audio-transport {
    display: flex;
    gap: 8px;
}

.fx-audio-transport button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.fx-audio-transport .fx-icon-svg {
    width: 18px;
    height: 18px;
}

.fx-audio-playlist {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-audio-playlist button {
    display: grid;
    width: 100%;
    padding: 10px 12px;
    gap: 2px;
    text-align: start;
    border-radius: 12px;
}

.fx-audio-playlist button[aria-current="true"] {
    border-color: #8e66ff;
    background: linear-gradient(120deg, rgba(93, 226, 255, 0.15), rgba(142, 102, 255, 0.16));
}

.fx-audio-playlist small {
    color: rgba(217, 238, 246, 0.62);
}

.fx-audio-transcript,
.fx-map-fallback {
    color: #7ceaff;
    font-size: 0.88rem;
    text-underline-offset: 0.2em;
}

.fx-map {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
}

.fx-map-fallback {
    justify-self: start;
}

.fx-media-preview.fx-media-video,
.fx-media-preview.fx-media-audio,
.fx-media-preview.fx-media-map {
    min-height: 130px;
}

.fx-playlist-editor {
    min-height: 132px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .fx-consent-button,
    .fx-audio-transport button,
    .fx-audio-playlist button {
        transition: none !important;
    }
}

/* FLUXYON native social icon widget. */
.fx-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fx-social-gap, 10px);
    align-items: center;
}
.fx-social-icons-align-start { justify-content: flex-start; }
.fx-social-icons-align-center { justify-content: center; }
.fx-social-icons-align-end { justify-content: flex-end; }
.fx-social-icon-link {
    width: var(--fx-social-size, 46px);
    height: var(--fx-social-size, 46px);
    display: inline-grid;
    place-items: center;
    color: var(--fx-social-color, #fff);
    background: var(--fx-social-bg, #26313d);
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.fx-social-icons-shape-circle .fx-social-icon-link { border-radius: 50%; }
.fx-social-icons-shape-rounded .fx-social-icon-link { border-radius: 12px; }
.fx-social-icons-shape-square .fx-social-icon-link { border-radius: 0; }
.fx-social-icon-link:hover,
.fx-social-icon-link:focus-visible {
    color: var(--fx-social-hover-color, #fff);
    background: var(--fx-social-hover-bg, #1687ff);
    transform: translateY(-2px);
    box-shadow: 0 9px 24px color-mix(in srgb, var(--fx-social-hover-bg, #1687ff) 32%, transparent);
    outline: 2px solid color-mix(in srgb, var(--fx-social-hover-bg, #1687ff) 70%, white);
    outline-offset: 2px;
}
.fx-social-icon-graphic,
.fx-social-icon-graphic svg { width: 55%; height: 55%; display: block; }
.fx-social-icon-graphic svg { fill: none; stroke: currentColor; }
@media (prefers-reduced-motion: reduce) {
    .fx-social-icon-link { transition: none; }
    .fx-social-icon-link:hover { transform: none; }
}


/* Editor/freeform parity: propriedades visuais definidas no bloco de imagem
 * são propagadas até o elemento de mídia sem impor valores próprios. */
.fx-block[data-type="image"] .fx-image,
.fx-block[data-type="image"] .fx-image-media,
.fx-block[data-type="image"] .fx-image-link {
    object-fit: inherit;
    object-position: inherit;
    border-radius: inherit;
}
.fx-block[data-type="image"] .fx-image-element {
    object-fit: inherit;
    object-position: inherit;
    border-radius: inherit;
}
