/*
 * Northpeak RTL - tested layout-specific corrections.
 * Native text direction comes from WordPress language_attributes().
 * Logical properties preserve the existing LTR layouts.
 */
html[dir="rtl"] .utility .container,
html[dir="rtl"] .masthead,
html[dir="rtl"] .category-nav ul,
html[dir="rtl"] .breaking .container,
html[dir="rtl"] .content-layout,
html[dir="rtl"] .desk-grid,
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .np-footer-main,
html[dir="rtl"] .np-footer-bottom,
html[dir="rtl"] .entry,
html[dir="rtl"] .np-author-profile,
html[dir="rtl"] .np-author-bio,
html[dir="rtl"] .sidebar { direction: rtl; }

html[dir="rtl"] .entry-content blockquote,
html[dir="rtl"] .entry-content .wp-block-quote {
  border-left: 0;
  border-right: 3px solid var(--np-blue, #d82424);
  padding-left: 0;
  padding-right: 21px;
}
html[dir="rtl"] .entry-content ul,
html[dir="rtl"] .entry-content ol {
  padding-left: 0;
  padding-right: 1.5em;
}
html[dir="rtl"] .entry-content table th,
html[dir="rtl"] .entry-content table td,
html[dir="rtl"] .np-author-profile-description,
html[dir="rtl"] .np-footer-column {
  text-align: right;
}
html[dir="rtl"] .sidebar .trend {
  padding-right: 55px;
  padding-left: 15px;
}
html[dir="rtl"] .sidebar .trend::before {
  right: 14px;
  left: auto;
}
html[dir="rtl"] .category-nav .sub-menu,
html[dir="rtl"] .category-nav .children { right: 0; left: auto; }
html[dir="rtl"] .post-nav > div:first-child { text-align: right; }
html[dir="rtl"] .post-nav > div:last-child { text-align: left; }
html[dir="rtl"] .np-social-icons { direction: rtl; }
html[dir="rtl"] .np-footer-legal-links,
html[dir="rtl"] .breadcrumbs { direction: rtl; }
html[dir="rtl"] .np-footer-cta { direction: rtl; }

/* Let the title and card grids wrap in their direction without reversing article order. */
html[dir="rtl"] .lead-main h1,
html[dir="rtl"] .article-card h3,
html[dir="rtl"] .entry h1 { text-align: start; }

@media (max-width: 860px) {
  html[dir="rtl"] .category-nav .sub-menu,
  html[dir="rtl"] .category-nav .children {
    padding-left: 0;
    padding-right: 15px;
  }
}
