.rich-content,
.modal-content.rich-content,
.post-rich-preview {
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.rich-content strong,
.post-rich-preview strong {
    color: #f7fbff;
    font-weight: 800;
}

.rich-content em,
.post-rich-preview em {
    color: #d9e8ff;
}

.rich-content mark,
.post-rich-preview mark {
    padding: .08em .28em;
    border-radius: .28rem;
    color: #fff5c2;
    background: rgba(245, 184, 55, .26);
    box-shadow: inset 0 0 0 1px rgba(245, 184, 55, .22);
}

.rich-heading {
    margin: 1.15rem 0 .5rem;
    line-height: 1.2;
}

.rich-heading-1 { font-size: 1.45em; }
.rich-heading-2 { font-size: 1.25em; }
.rich-heading-3 { font-size: 1.08em; }

.rich-link {
    color: #8fd3ff;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.rich-inline-figure {
    margin: 1.15rem auto;
    max-width: 920px;
    text-align: center;
}

.rich-inline-image {
    display: block;
    width: auto;
    max-width: min(100%, 920px);
    max-height: 620px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.rich-video-figure {
    margin: 1.15rem auto;
    width: 100%;
    max-width: 960px;
}

.rich-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
}

.rich-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.rich-video-player {
    display: block;
    width: 100%;
    max-height: 70vh;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
}

.rich-inline-figure figcaption {
    margin-top: .45rem;
    color: #92a8c5;
    font-size: .84rem;
}

.rich-quote {
    margin: .9rem 0;
    padding: .65rem .9rem;
    border-left: 3px solid rgba(94, 190, 255, .72);
    background: rgba(78, 145, 200, .08);
    color: #d9e8f7;
}

.rich-separator {
    border: 0;
    border-top: 1px solid rgba(150, 180, 210, .22);
    margin: 1.15rem 0;
}

.post-format-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0 0 .55rem;
}

.post-format-toolbar button {
    min-height: 34px;
    padding: .38rem .7rem;
    border-radius: 8px;
    font-size: .82rem;
}

.post-format-help {
    display: block;
    margin-top: .45rem;
    color: #8ea4be;
    line-height: 1.45;
}

.post-rich-preview-shell {
    border: 1px solid rgba(121, 168, 209, .2);
    border-radius: 12px;
    background: rgba(4, 16, 29, .42);
    overflow: hidden;
}

.post-rich-preview-title {
    padding: .58rem .78rem;
    border-bottom: 1px solid rgba(121, 168, 209, .14);
    color: #8ea4be;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.post-rich-preview {
    min-height: 100px;
    padding: .85rem;
    color: #dce9fb;
}

@media (max-width: 720px) {
    .rich-inline-image { max-height: 420px; }
}
