/* Shared by every page: language visibility, resets, focus, motion. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

html[lang="ar"] body [lang="en"]:not([data-lang-toggle]),
html[lang="en"] body [lang="ar"]:not([data-lang-toggle]) { display: none !important; }

:focus-visible { outline: 3px solid var(--focus, #2E46F0); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Inside the studio's phone preview: hide the template's own lang switch and back link. */
.is-embed [data-hide-embed] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
