/* Scoped reader improvements; sponsor placement and comment policy are retained. */
html.nts-reader-ux body { --nts-reader-link: #006394; --nts-reader-meta: #595959; }
html.nts-reader-ux.nts-theme-dark body { --nts-reader-link: #8bd8ff; --nts-reader-meta: #c9d2dc; }
html.nts-reader-ux body .tdb_single_content a:not(.td-modal-image):not(.nts-photo-link),
html.nts-reader-ux body .td-post-content a:not(.td-modal-image):not(.nts-photo-link),
html.nts-reader-ux body .tdm-descr a {
    color: var(--nts-reader-link) !important;
    text-decoration: underline;
    text-underline-offset: .16em;
}
html.nts-reader-ux body #wpdcom .wpd-comment-author,
html.nts-reader-ux body #wpdcom .wpd-comment-author a { color: #00755e !important; }
html.nts-reader-ux.nts-theme-dark body #wpdcom .wpd-comment-author,
html.nts-reader-ux.nts-theme-dark body #wpdcom .wpd-comment-author a { color: #71ddbd !important; }
html.nts-reader-ux body #wpdcom .wpd-comment-date,
html.nts-reader-ux body #wpdcom .wpd-reply-button,
html.nts-reader-ux body #wpdcom .wpd-comment-text,
html.nts-reader-ux body #wpdcom .wpd-comment-text p,
html.nts-reader-ux body #wpdcom .ql-editor p,
html.nts-reader-ux body .nts-reader-comments-hide,
html.nts-reader-ux body .nts-reader-comments-show { color: var(--nts-reader-meta) !important; }
html.nts-reader-ux body #wpdcom .wpd-vote-result { color: var(--nts-reader-meta) !important; }
html.nts-reader-ux body #wpdcom .wpd-vote-result.wpd-vote-result-up { color: #006f38 !important; }
html.nts-reader-ux body #wpdcom .wpd-vote-result.wpd-vote-result-down { color: #a52f21 !important; }
html.nts-reader-ux:not(.nts-theme-dark) body .nts-reader-header-contrast {
    color: #222 !important; background: #fff; padding: 3px 6px; border-radius: 2px;
}
html.nts-reader-ux body .writer-cta { background-color: #974b35 !important; }
html.nts-reader-ux body .inline-mail-link { text-decoration: underline !important; }

html.nts-reader-ux body :is(.tdb-mobile-menu-button,.tdb-header-search-button-mob,
.td-mobile-close,.td-search-close):focus-visible,
html.nts-reader-ux body .nts-reader-comment-link:focus-visible,
html.nts-reader-ux body .nts-reader-search-load:focus-visible {
    outline: 3px solid #6d28d9;
    outline-offset: 3px;
}
html.nts-reader-ux body .nts-reader-skip {
    position: fixed; top: 10px; left: 10px; transform: translateY(-200%);
    z-index: 2147483647; padding: 12px 18px; background: #fff; color: #174d6b;
    border: 2px solid #174d6b; border-radius: 6px;
}
html.nts-reader-ux body .nts-reader-skip:focus { transform: none; }
html.nts-reader-ux body .nts-reader-comment-nav {
    display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0;
}
html.nts-reader-ux body a.nts-reader-comment-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 8px 16px; box-sizing: border-box;
    color: #07556d !important; background: #eef6f8; border: 1px solid #abc4cb;
    border-radius: 6px; font-size: 15px; font-weight: 600; text-decoration: none;
}
html.nts-reader-ux body .nts-reader-comment-target { scroll-margin-top: 80px; }
html.nts-reader-ux body #wpdcom .nts-reader-duplicate-count { display: none !important; }
html.nts-reader-ux body .nts-reader-named-profile::before,
html.nts-reader-ux body .nts-reader-named-profile::after { content: none !important; }
html.nts-reader-ux body .nts-reader-named-profile {
    background: #075b70 !important; color: #fff !important;
}
html.nts-reader-ux body .nts-reader-named-profile:hover { background: #08475c !important; }
html.nts-reader-ux body [data-nts-reader-region]:focus-visible {
    outline: 3px solid #6d28d9; outline-offset: -3px;
}
/* Keep the existing event rotation, but avoid faded/invisible links sharing a hit area. */
html.nts-reader-ux body .td-trending-now-post {
    animation: none !important; -webkit-animation: none !important;
}
html.nts-reader-ux body .td-trending-now-post .entry-title a {
    display: inline-block; min-height: 26px; padding: 3px 0; box-sizing: border-box;
}
html.nts-reader-ux body .nts-reader-search-load {
    min-height: 44px; padding: 10px 16px; font-size: 16px;
    color: #174d6b; background: #fff; border: 1px solid #abc4cb; border-radius: 6px;
}

@media (max-width: 767px) {
    html.nts-reader-ux body.single-post :is(.tdb_single_content,.td-post-content) :is(p,li) {
        font-size: 16px !important; line-height: 1.85 !important;
    }
    html.nts-reader-ux body .td-post-category {
        min-height: 26px; display: inline-flex; align-items: center;
        box-sizing: border-box; padding: 4px 8px !important; margin: 3px 4px 3px 0 !important;
    }
    html.nts-reader-ux body .popular-posts-sr .category {
        min-height: 26px; display: inline-flex; align-items: center; padding: 4px;
    }
    html.nts-reader-ux body :is(.td-social-sharing-button,.nts-banner-close,
    .staff-bio-toggle,.nts-reader-comments-hide,.nts-reader-comments-show) { min-height: 44px !important; }
    html.nts-reader-ux body .td-social-sharing-button { min-width: 44px !important; }
    html.nts-reader-ux body .nts-banner-close { min-width: 44px !important; }
    html.nts-reader-ux body #wpdcom :is(.wpd-vote-up,.wpd-vote-down) {
        min-width: 44px; min-height: 44px; display: inline-flex;
        align-items: center; justify-content: center;
    }
    html.nts-reader-ux body #wpdcom .wpd-reply-button { min-height: 44px; display: inline-flex; align-items: center; }
    html.nts-reader-ux body #wpdcom .wpd-load-comments { min-height: 44px; }
}
