/* Secure Steps — Arabic / RTL adjustments */
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
html[dir="rtl"] body { line-height: 1.8; }

/* Arabic script must not be letter-spaced or uppercased */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4,
html[dir="rtl"] .wp-block-post-title, html[dir="rtl"] .wp-block-site-title,
html[dir="rtl"] .ss-section-label, html[dir="rtl"] .ss-footer-kicker,
html[dir="rtl"] .ss-card-link, html[dir="rtl"] #ss-hero-art-title,
html[dir="rtl"] .ss-home-next-step__title, html[dir="rtl"] .ss-research-strip strong {
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] #ss-hero-art-title, html[dir="rtl"] .ss-home-next-step__title { line-height: 1.3 !important; }
html[dir="rtl"] #ss-hero-art-title { font-size: clamp(2.3rem, 5vw, 4.6rem) !important; }

/* Hero: text sits on the right, artwork on the left */
html[dir="rtl"] #ss-hero-art-canvas,
html[dir="rtl"] #ss-hero-art-wash { transform: scaleX(-1); }
html[dir="rtl"] #ss-hero-art-actions a:hover { transform: translateY(-1px); }

/* Lists and quotes */
html[dir="rtl"] .wp-block-quote { border-left: 0; border-right: 4px solid #19C3C8; padding-left: 0; padding-right: 1.25em; }
html[dir="rtl"] ul, html[dir="rtl"] ol { padding-left: 0; padding-right: 1.4em; }
html[dir="rtl"] .ss-checklist, html[dir="rtl"] .ss-principles, html[dir="rtl"] .ss-steps,
html[dir="rtl"] .ss-home-next-step__list, html[dir="rtl"] #ss-hero-chips,
html[dir="rtl"] .ss-footer-focus-list { padding-right: 0; }

/* English posts listed on Arabic pages stay readable */
html[dir="rtl"] .wp-block-post-template .wp-block-post-title,
html[dir="rtl"] .wp-block-post-template .wp-block-post-excerpt__excerpt { unicode-bidi: plaintext; text-align: start; }

/* Language switcher */
.ss-lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.4rem; padding: 0.35rem 0.9rem; margin-inline-start: 0.6rem;
  border-radius: 999px; border: 1px solid rgba(37,99,235,0.25);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  color: #1f4fd6; background: rgba(37,99,235,0.06);
}
.ss-lang-switch:hover { background: rgba(37,99,235,0.12); }
.ss-lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; }
