/* UI fonts are local and separate from fonts selected inside generated documents. */
@font-face { font-family: "PDFgine Arabic"; src: url("fonts/NotoSansArabic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "PDFgine Japanese"; src: url("fonts/NotoSansJP.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "PDFgine Korean"; src: url("fonts/NotoSansKR.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
html:lang(ar) { --locale-sans: "PDFgine Arabic"; }
html:lang(ja) { --locale-sans: "PDFgine Japanese"; }
html:lang(ko) { --locale-sans: "PDFgine Korean"; }
html:is(:lang(ar), :lang(ja), :lang(ko)) body { font-family: var(--locale-sans), "DM Sans", sans-serif; --ui: var(--locale-sans), "Inter", sans-serif; }
html:is(:lang(ar), :lang(ja), :lang(ko)) :is(button, input, select, textarea) { font-family: inherit; }
a:lang(ar), [lang="ar"] .language-option { font-family: "PDFgine Arabic", sans-serif; }
a:lang(ja), [lang="ja"] .language-option { font-family: "PDFgine Japanese", sans-serif; }
a:lang(ko), [lang="ko"] .language-option { font-family: "PDFgine Korean", sans-serif; }
html[dir="rtl"] :is(pre, code, input[type="email"], input[type="url"], input[type="tel"], [data-code-editor]) { direction: ltr; unicode-bidi: plaintext; text-align: start; }
html[dir="rtl"] :is(.footer-language-menu, .cookie-dialog, .cookie-banner) { text-align: start; }
html[dir="rtl"] .language-chevron { margin-left: 0; margin-right: calc(var(--space-6, 6px) / 2); }
html[dir="rtl"] .header-language .footer-language-menu { right: auto; left: 0; }
html[dir="rtl"] .footer-backlinks { margin-left: 0; margin-right: 0; }
html[dir="rtl"] :is(th, td) { text-align: start; }
html[dir="rtl"] .ac-sidebar { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--ac-line); }
html[dir="rtl"] .ac-shell { margin-left: 0; margin-right: calc(var(--layout-256) - var(--space-20)); }
html[dir="rtl"] :is(.ac-workspace summary > .ac-icon, .ac-nav-group > summary > .ac-icon:last-child, .ac-template > .ac-icon) { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .ac-nav-group > div { padding-left: 0; padding-right: calc(var(--space-18) + 1px); }
html[dir="rtl"] .ac-profile-menu { right: auto; left: 0; }
/* Document geometry and source data keep their authored direction. */
html[dir="rtl"] :is(.canvas, .page-stage, .document-page, #json-input, #json-output) { direction: ltr; }
@media (max-width: 800px) {
  html[dir="rtl"] .ac-shell { margin-right: 0; }
  html[dir="rtl"] .ac-mobile-close { right: auto; left: 14px; }
}