/* What the design's two stylesheets don't cover: the footer's language list and right-to-left pages. */
/* The Everyday Tools hero's glow sits 90px past its box: below 1324px wide that's past the page's edge, a sideways scroll. */
@media (max-width: 1324px) { .interior-feature-art-tools::after { right: 0; width: min(420px, 100%); aspect-ratio: 1; height: auto; } }

.footer-languages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 18px 0 30px; border-top: 1px solid rgba(255,255,255,.08); font: 400 12px/1.6 var(--body); }
.footer-languages a { color: #B7A6C8; text-decoration: none; }
/* Each name in its own script: the system's font, or every language would download the site's whole fonts for this one list. */
.footer-languages, .language-options a { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.footer-languages a:hover, .footer-languages a[aria-current] { color: var(--button); }

/* Arabic and Urdu: the design is drawn left to right; mirror what reads by direction. */
[dir="rtl"] .breadcrumbs, [dir="rtl"] .nav-links, [dir="rtl"] .site-nav { direction: rtl; }
[dir="rtl"] .interior-text-link span[aria-hidden], [dir="rtl"] .btn span[aria-hidden], [dir="rtl"] .features-all span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .jars-demo-button svg, [dir="rtl"] .setup-flow-arrow { transform: scaleX(-1); }

/* The flag button and its menu (render/layout.ts). The menu shares the download popover's panel. */
.nav-language { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; padding: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(210,178,239,.24); border-radius: 10px; cursor: pointer; transition: background .2s; }
.nav-language:hover { background: rgba(255,255,255,.13); }
.nav-language:focus-visible, .nav-login:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.nav-language img, .language-options img { display: block; flex: none; width: 24px; height: 18px; border-radius: 3px; }
.language-popover { width: min(440px, calc(100vw - 36px)); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; }
.language-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; margin-top: 12px; }
.language-options a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border-radius: 10px; color: #E8E0F2; text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.25; }
.language-options a:hover { background: rgba(255,255,255,.1); }
.language-options a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.language-options a[aria-current] { background: rgba(255,255,255,.08); color: var(--button); }
[dir="rtl"] .download-popover { right: auto; left: 0; }
.actions .hero-store svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
@media (max-width: 380px) {
  .site-nav .logo { width: 78px; min-width: 78px; }
  .nav-actions { gap: 6px; }
  .nav-download { width: auto; min-width: 0; padding: 10px 10px; font-size: 12px; }
  .nav-language, .menu-toggle { width: 38px; height: 38px; }
}
@media (max-width: 420px) { .trust-review-heading { flex-wrap: wrap; } }

/* Log in: the flag button's outline, with words. Below 620 px it moves into the menu: the bar has no room. */
.nav-login { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 42px; padding: 0 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(210,178,239,.24); border-radius: 10px; color: #fff; font: 600 14px var(--display); text-decoration: none; white-space: nowrap; transition: background .2s; }
.nav-login:hover { background: rgba(255,255,255,.13); }
.nav-login-menu { display: none; }
@media (max-width: 620px) { .nav-login { display: none; } .nav-links .nav-login-menu { display: block; } }

/* The contact form (templates/contact.ts). */
.contact-form-wrap { margin-top: 56px; max-width: 640px; }
.contact-form-wrap h2 { font: 600 34px var(--display); margin: 0 0 22px; }
.contact-form { display: grid; gap: 16px; justify-items: start; }
.contact-field { display: grid; gap: 7px; width: 100%; font: 500 14px/1.3 var(--body); color: #E8E0F2; }
.contact-field input, .contact-field textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(210,178,239,.28); border-radius: 10px; color: #fff; font: 400 16px/1.5 var(--body); }
.contact-field input:focus-visible, .contact-field textarea:focus-visible { outline: 2px solid var(--button); outline-offset: 1px; }
.contact-captcha { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(210,178,239,.28); border-radius: 10px; font: 500 15px/1.3 var(--body); color: #E8E0F2; cursor: pointer; }
.contact-captcha input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--button); }
.contact-trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-status { margin: 0; min-height: 1.5em; font: 400 15px/1.5 var(--body); color: #CFC1DC; }
