/* web22: the language picker, right-to-left pages (ar, ur), price lines and the legal note.
   Kept apart from site.css so the English look stays exactly as it was. */

/* The picker: a globe and the code in the header; the list of the 22, each in its own name. */
.langpick { position: relative; display: inline-block; margin-inline-start: 18px; vertical-align: middle; }
.langpick summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 2px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink); font: 800 13px/1 var(--sans); letter-spacing: .04em; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick:not([open]) ul { display: none; }
.langpick summary:hover, .langpick[open] summary { border-color: var(--blue); }
.langpick summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.langpick ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 50; margin: 0; padding: 8px; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(14, 26, 53, .18);
  display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 6px; max-height: min(70vh, 560px); overflow: auto; }
.langpick li a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; white-space: nowrap;
  font-family: "Noto Sans", "Noto Sans Devanagari", "Noto Sans Thai", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans Arabic", var(--sans);
  font-weight: 700; font-size: 15px; line-height: 1.35; margin: 0; }
.top nav .langpick li a { margin: 0; }
.langpick li a:hover, .langpick li a:focus-visible { background: var(--sky); }
.langpick li a[aria-current] { background: var(--blue-soft); color: var(--blue-deep); }
@media (max-width: 720px) {
  .langpick ul { grid-template-columns: max-content; position: fixed; inset-inline-end: 12px; top: 64px; max-height: calc(100vh - 80px); }
}
header.top { flex-wrap: wrap; }

/* Prices: the words when Google Play's price for the visitor's country isn't known. */
.plan .price[data-px]:not(.px-on) { font-size: 20px; line-height: 1.3; color: var(--soft); }

/* Legal pages: the English version prevails. */
.prevails { background: var(--sky); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 15px; color: var(--soft); }

/* Right to left: the one-sided spacing of site.css and the guides, mirrored. Charts and the
   table drawing stay as drawn. */
[dir=rtl] .top nav a { margin-left: 0; margin-right: 24px; }
[dir=rtl] .why li, [dir=rtl] .feature ul li, [dir=rtl] ul.ticks li, [dir=rtl] .plan ul li { padding-left: 0; padding-right: 30px; }
[dir=rtl] .why li::before, [dir=rtl] .feature ul li::before, [dir=rtl] ul.ticks li::before, [dir=rtl] .plan ul li::before { left: auto; right: 0; }
[dir=rtl] .card .tag-soon, [dir=rtl] .tag-soon { margin-left: 0; margin-right: 8px; }
[dir=rtl] .cta form.join, [dir=rtl] .cta .fine, [dir=rtl] .cta .done { text-align: right; }
[dir=rtl] .choice button { text-align: right; }
[dir=rtl] footer.site .flinks a { margin-left: 0; margin-right: 16px; }
[dir=rtl] .tcard h3 small, [dir=rtl] .ticker li i { margin-left: 0; margin-right: 6px; }
[dir=rtl] .more { margin-left: 0; margin-right: 12px; }
[dir=rtl] .strip b { margin-right: 0; margin-left: 2px; }
[dir=rtl] .fcta .qr { right: auto; left: 24px; }
@media (hover: hover) and (pointer: fine) and (min-width: 820px) { [dir=rtl] .fcta { padding-right: 24px; padding-left: 170px; } }
[dir=rtl] .getpage ol.getsteps, [dir=rtl] .guide ul, [dir=rtl] .guide ol, [dir=rtl] main.page ul, [dir=rtl] main.page ol { padding-left: 0; padding-right: 22px; }
[dir=rtl] .guide ul.check { padding-right: 0; }
[dir=rtl] .guide ul.check li { padding-left: 0; padding-right: 30px; }
[dir=rtl] .guide ul.check li::before { left: auto; right: 0; }
[dir=rtl] .showcase .art, [dir=rtl] .ovt { direction: ltr; }
[dir=rtl] .hp { left: auto; right: -9999px; }
[dir=rtl] input[type=email], [dir=rtl] .share input { direction: ltr; text-align: right; }

/* The 16-and-16 chart on narrow phones: Google's 14 line sits near the right end, so its label
   goes on the inner side of the line instead of running off the screen (English too). */

/* Long words and addresses (a help-page URL in a guide, a long German compound) break instead of
   pushing the page sideways on a phone. */
main.page, .guide, .faq, .card, .plan { overflow-wrap: break-word; }
