/*
 * Newspaper Urdu Pro compatibility layer.
 * It intentionally never changes row/column order, flex-direction, grid flow,
 * floats, widths, header containers, or footer containers. Newspaper and the
 * active Cloud Templates keep full ownership of geometry.
 */

html[dir="rtl"] body.nup-enabled.nup-rtl-text :is(
    .entry-title,
    .td-post-title,
    .td-module-title,
    .td-module-title a,
    .td-block-title,
    .td-block-title a,
    .td-excerpt,
    .td-excerpt p,
    .tdb-title-text,
    .tdm-title,
    .tdm-title-text,
    .td-category-description,
    .td-author-description,
    .tdb-author-descr,
    .tdb-description,
    .tdb-s-author-desc
){direction:rtl;text-align:start;unicode-bidi:plaintext}

html[dir="rtl"] body.nup-enabled.nup-header-text :is(
    .td-header-menu-wrap .td-menu-item > a,
    .td-header-top-menu a,
    .tdb-head-menu .tdb-menu > li > a,
    .tdb-head-menu .sub-menu a,
    .tdb-mobile-menu a,
    .td-mobile-content a,
    .tdb-header-menu-button,
    .tdb-head-search-form-input,
    .td-search-input
){direction:rtl;unicode-bidi:plaintext}

html[dir="rtl"] body.nup-enabled.nup-footer-text :is(
    .td-footer-wrapper .widget-title,
    .td-footer-wrapper p,
    .td-footer-wrapper li > a,
    .td-sub-footer-menu li > a,
    .td-sub-footer-copy,
    .td-footer-info,
    .tdb-footer-template .tdm-descr,
    .tdb-footer-template .tdm-title,
    .td-footer-page .widget-title,
    .td-footer-page p,
    .td-footer-page li > a
){direction:rtl;text-align:start;unicode-bidi:plaintext}

html[dir="rtl"] body.nup-enabled.nup-modules :is(
    .td-post-category,
    .td-post-category a,
    .td-post-author-name,
    .td-post-author-name a,
    .td-post-date,
    .td-module-comments a,
    .tdb-entry-category,
    .tdb-author-name,
    .tdb-post-comments,
    .td-next-prev-wrap a,
    .page-nav a
){direction:rtl;unicode-bidi:plaintext}

html[dir="rtl"] body.nup-enabled.nup-single :is(
    .td-post-content,
    .td-post-content p,
    .td-post-content h1,
    .td-post-content h2,
    .td-post-content h3,
    .td-post-content h4,
    .td-post-content h5,
    .td-post-content h6,
    .comment-content,
    .comment-content p,
    .tdb-single-content,
    .tdb-single-content p,
    .tdb-breadcrumbs a,
    .tdb-breadcrumbs span,
    .entry-crumbs a,
    .entry-crumbs span
){direction:rtl;text-align:right;}

html[dir="rtl"] body.nup-enabled.nup-single :is(
    .td-post-content ul,
    .td-post-content ol,
    .tdb-single-content ul,
    .tdb-single-content ol,
    .comment-content ul,
    .comment-content ol
){padding-inline-start:1.5em;padding-inline-end:0}

html[dir="rtl"] body.nup-enabled.nup-single :is(
    .td-post-content blockquote,
    .tdb-single-content blockquote,
    .comment-content blockquote
){border-inline-start:3px solid currentColor;border-inline-end:0;padding-inline-start:1.15em;padding-inline-end:0}

html[dir="rtl"] body.nup-enabled.nup-forms :is(
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="url"],
    input[type="tel"],
    textarea,
    select
){direction:rtl;text-align:start}

html[dir="rtl"] body.nup-enabled.nup-forms :is(
    .widget-title,
    .widget_archive li,
    .widget_categories li,
    .widget_pages li,
    .widget_meta li,
    .widget_nav_menu li,
    .widget_recent_entries li,
    .widget_recent_comments li
){text-align:start}

body.nup-enabled.nup-debug :is(.tdc-row,.td-pb-row,.tdc-column,.vc_column,.vc_column-inner){outline:1px dashed rgba(198,47,47,.25)}
