/* Forum message reading measure (desktop only). Phone rules live in forum-kunena.css.
   Only the post body (.horizontal-message-text > .kmsg) is capped; the card, author strip,
   header, signature, attachment cards and every list/table view keep their full width. */
@media (min-width: 769px) {
    .emjey-forum-main #kunena .horizontal-message-text > .kmsg {
        --emjey-forum-measure: 48rem;
        box-sizing: border-box;
        max-width: var(--emjey-forum-measure);
        margin-inline: 0;
        font-size: 1.0625rem;
        line-height: 1.7;
        text-align: start;
    }
    :is(html[lang^="fa"], body.rtl) .emjey-forum-main #kunena .horizontal-message-text > .kmsg {
        line-height: 1.9;
    }

    /* Wide blocks may use the whole message width. 100cqi is the content width of
       .horizontal-message-text; without container units they stay inside the measure. */
    @supports (container-type: inline-size) {
        .emjey-forum-main #kunena .horizontal-message-text {
            container-type: inline-size;
        }
        .emjey-forum-main #kunena .horizontal-message-text > .kmsg > :is(.kmsgimage, .kmsgvideo, .kmsgattach, .highlight, pre, table) {
            box-sizing: border-box;
            width: max-content;
            max-width: 100cqi;
        }
        .emjey-forum-main #kunena .horizontal-message-text > .kmsg > :is(.kmsgattach, .highlight, pre) {
            min-width: 100%;
        }
        .emjey-forum-main #kunena .horizontal-message-text > .kmsg > :is(.kmsgimage, .kmsgvideo) img {
            max-width: 100%;
            height: auto;
        }
    }
}
