/* Flick site in other languages (added to every page by app/scripts/i18n.mjs).
   Latin languages keep the site's system font as it is; Japanese, Korean and Arabic put a matching Noto Sans right
   after it, so Latin words keep the Flick look and the rest uses a clean, even sans in the same weights. */
:root:lang(ja) { --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", sans-serif; }
:root:lang(ko) { --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; }
:root:lang(ar) { --font: "Noto Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
:root:is(:lang(ja), :lang(ko)) body { word-break: normal; line-break: strict; }
:root:lang(ko) body { word-break: keep-all; }
/* Arabic joins its letters, so no letter-spacing; no italics in Arabic, Japanese or Korean. */
:root:lang(ar) * { letter-spacing: 0 !important; }
:root:is(:lang(ar), :lang(ja), :lang(ko)) :is(em, i):not(.ic) { font-style: normal; }
/* Arrows and "go" icons point the way you read. */
[dir="rtl"] :is(.go, .arr, .chev) { transform: scaleX(-1); }
[dir="rtl"] footer nav { margin-left: 0; margin-right: auto; }

/* Longer languages: let wide buttons and headlines wrap instead of pushing the page sideways. */
html:not([lang="en"]) .btn { white-space: normal; text-wrap: balance; text-align: center; }
html:not([lang="en"]) :is(h1, h2, h3) { overflow-wrap: break-word; text-wrap: balance; }
:root:lang(de) :is(h1, h2, h3, p, li) { hyphens: auto; overflow-wrap: break-word; }
/* The inbox mock: long subjects end in "…" instead of widening the row. */
.rows .row > span { min-width: 0; }
/* The compare tabs: three short labels must fit a phone in every language. */
@media (max-width: 440px) { html:not([lang="en"]) .vs-tabs { width: auto; border-radius: 22px; } html:not([lang="en"]) .vs-tabs button { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.2; padding: 8px 6px; font-size: 13px; border-radius: 16px; } }

/* The language switch at the end of the footer. */
.lang-switch { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line, rgba(127, 127, 127, 0.18)); font-size: 13.5px; }
.lang-switch a { color: var(--muted, inherit); text-decoration: none; margin: 0 !important; }
.lang-switch a:hover { color: var(--ink, inherit); text-decoration: underline; }
.lang-switch a[aria-current] { color: var(--ink, inherit); font-weight: 600; }

/* "View this page in Español?" A small pill at the bottom; never covers the page, never moves anyone. */
.lang-offer { position: fixed; z-index: 60; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--surface, #fff); color: var(--ink, #2a1610); box-shadow: 0 10px 30px -8px rgba(59, 19, 6, 0.35), 0 0 0 1px var(--line, rgba(124, 45, 18, 0.14)); font: 600 14px/1.3 var(--font, system-ui, sans-serif); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.lang-offer.in { transform: translate(-50%, 0); }
.lang-offer[dir="rtl"] { padding: 8px 16px 8px 8px; }
.lang-offer span { min-width: 0; }
.lang-offer .lo-yes { flex: none; padding: 8px 16px; border-radius: 999px; background: linear-gradient(135deg, #c2410c 0%, #be185d 100%); color: #fff; text-decoration: none; }
.lang-offer .lo-no { flex: none; padding: 8px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted, #7a5a4e); font: inherit; font-weight: 500; cursor: pointer; }
.lang-offer .lo-no:hover { background: var(--bg-2, rgba(0, 0, 0, 0.05)); }
@media (max-width: 420px) { .lang-offer { font-size: 13px; gap: 6px; } .lang-offer .lo-no { padding: 8px 6px; } }
@media (prefers-reduced-motion: reduce) { .lang-offer { transition: none; } }
