/* momoworx.com — shared look for the Momo Designs pages (home, Scriptorium,
   About and the Scriptorium legal pages). The Cali page (cali.html) keeps its
   own styles. Light and dark follow the visitor's system setting. */

:root {
  --bg: #f7f5f0;
  --bg-2: #efebe2;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --text: #16181d;
  --muted: #545c69;
  --faint: #5d6571;
  --line: #e2ddd2;
  --line-2: #d3ccbe;
  --red: #aa0202;
  --blue: #1a63b8;
  --blue-2: #124f96;
  --blue-soft: #e8f0fa;
  --gold: #8a5d00;
  --gold-soft: #fbf1dc;
  --navy: #0b2a4a;
  --cali-gold: #d9a900;
  --green: #1d7a4a;
  --green-soft: #e5f4ec;
  --focus: #1a63b8;
  --shadow-1: 0 1px 2px rgba(22, 24, 29, .05), 0 6px 18px -8px rgba(22, 24, 29, .14);
  --shadow-2: 0 1px 2px rgba(22, 24, 29, .06), 0 24px 60px -24px rgba(22, 24, 29, .30);
  --r: 14px;
  --r-lg: 22px;
  --maxw: 1180px;
  --head: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1016;
    --bg-2: #11151d;
    --surface: #161b24;
    --surface-2: #131821;
    --text: #e8ecf2;
    --muted: #a7b0bd;
    --faint: #7e8898;
    --line: #262e3b;
    --line-2: #323c4c;
    --red: #ff6b6b;
    --blue: #6ea8f7;
    --blue-2: #9cc4fb;
    --blue-soft: #15243a;
    --gold: #f1bd52;
    --gold-soft: #2a2314;
    --navy: #0b2a4a;
    --cali-gold: #ffd700;
    --green: #5fd197;
    --green-soft: #12291d;
    --focus: #9cc4fb;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px -10px rgba(0, 0, 0, .6);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .45), 0 28px 70px -24px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code, kbd { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .92em; }
kbd { padding: .05em .4em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-1); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ------------------------------ header ------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.logo img { height: 38px; width: auto; }
.logo .prod { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.logo .prod img { height: 30px; width: 30px; border-radius: 8px; }
.logo .by { font-size: .78rem; color: var(--faint); font-weight: 500; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav .btn { margin-left: 8px; color: #fff; }
.head-back { margin-left: auto; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.head-back:hover { color: var(--text); background: var(--bg-2); }
@media (max-width: 560px) { .has-prod > .logo:first-child { display: none; } }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 42px; height: 40px; font-size: 20px; cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 12px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
/* A product page's header carries two logos and six links, so it folds into the
   menu button a little sooner than the others. */
@media (min-width: 881px) and (max-width: 1040px) {
  .has-prod .nav-toggle { display: inline-grid; place-items: center; }
  .has-prod .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); }
  .has-prod .nav.open { display: flex; }
  .has-prod .nav a { padding: 12px 12px; font-size: 1rem; }
  .has-prod .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 360px) { .logo img { height: 32px; } }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem/1 var(--body);
  padding: 13px 20px; min-height: 46px;
  border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  background: var(--blue); color: #fff;
  transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { background: var(--blue-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-1); }
@media (prefers-color-scheme: dark) { .btn { background: #2468c4; } .btn:hover { background: #1f5cb0; } }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface); border-color: var(--faint); color: var(--text); }
.btn.red { background: var(--red); }
@media (prefers-color-scheme: dark) { .btn.red { background: #c62828; } }
.btn.small { padding: 9px 14px; min-height: 38px; font-size: .9rem; border-radius: 10px; }
.btn[disabled], .btn.off { opacity: .55; pointer-events: none; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------ sections ------------------------------ */
.section { padding: 92px 0; }
.section.tint { background: var(--bg-2); }
.section.tight { padding: 64px 0; }
@media (max-width: 720px) { .section { padding: 60px 0; } .section.tight { padding: 44px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.head-block { max-width: 760px; margin-bottom: 44px; }
.center.head-block, .head-block.center { margin-left: auto; margin-right: auto; }

/* ------------------------------ screenshots ------------------------------ */
.shot {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.shot img { width: 100%; }
a.shot { display: block; cursor: zoom-in; transition: transform .25s; }
a.shot:hover { transform: translateY(-2px); }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--faint); margin-top: 12px; }

/* ------------------------------ cards and grids ------------------------------ */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow-1);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; }
.card.plain { box-shadow: none; }

.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 28px; margin: 0 0 .55em; }
.checks li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 15px; height: 15px; border-radius: 50%; background: var(--green-soft); box-shadow: inset 0 0 0 1.5px var(--green); }
.checks li::after { content: ''; position: absolute; left: 7px; top: .64em; width: 5px; height: 8px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.pill.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.pill.gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.pill.green { background: var(--green-soft); color: var(--green); border-color: transparent; }

/* two columns: words and a picture */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .words { order: 2; }
.feature .words h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.feature .who { font: 700 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: block; }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip .words { order: 0; }
  .feature + .feature { margin-top: 64px; }
}

/* ------------------------------ facts strip ------------------------------ */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.facts div { padding: 22px 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font: 800 1.5rem/1.1 var(--head); letter-spacing: -.02em; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: .92rem; }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ------------------------------ tables ------------------------------ */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 700; color: var(--muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }

/* ------------------------------ FAQ ------------------------------ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--faint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ------------------------------ forms ------------------------------ */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 13px; min-height: 46px;
}
.input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
textarea.input { min-height: 130px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 12px; font-size: .95rem; }
.status.ok { color: var(--green); }
.status.err { color: var(--red); }

/* ------------------------------ footer ------------------------------ */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font: 700 .8rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 4px 0 14px; }
.foot-grid a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 9px; }
.foot-grid a:hover { color: var(--text); text-decoration: underline; }
.foot-grid .logo img { height: 34px; }
.foot-about p { color: var(--muted); margin: 14px 0 0; max-width: 34ch; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ------------------------------ picture viewer ------------------------------ */
dialog.viewer { border: 0; padding: 0; background: transparent; max-width: min(1500px, 96vw); max-height: 94vh; overflow: visible; }
dialog.viewer::backdrop { background: rgba(8, 10, 14, .82); }
dialog.viewer img { max-width: min(1500px, 96vw); max-height: 86vh; width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: #fff; }
dialog.viewer p { color: #e8ecf2; text-align: center; margin: 12px 0 0; font-size: .95rem; }
dialog.viewer button { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 22px; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
@media (max-width: 560px) { dialog.viewer button { top: -48px; right: 0; } }

/* ------------------------------ legal pages ------------------------------ */
.legal { max-width: 800px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; letter-spacing: -.01em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--text); }
.legal .meta { color: var(--muted); font-size: .95rem; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 1.2em 0; }
.legal .toc { columns: 2; font-size: .95rem; }
@media (max-width: 600px) { .legal .toc { columns: 1; } .legal { padding: 36px 16px 64px; } }

/* ------------------------------ languages (19 October 2026) ------------------------------
   The Scriptorium pages are in the program's 60 languages: a Language menu in
   the header, the offer of the page in the visitor's own language, and what
   right-to-left pages and other writing systems need. */
.lang-menu { position: relative; flex: none; }
/* closed, the list takes no room at all (Chrome lays out a closed details' content, and on a phone the fixed list would widen the page) */
.lang-menu:not([open]) > .lang-list { display: none; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: .95rem; padding: 8px 10px; border-radius: 10px; user-select: none; white-space: nowrap; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { color: var(--text); background: var(--bg-2); }
.lang-menu > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lang-menu > summary svg { flex: none; }
.lang-list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; width: min(620px, calc(100vw - 32px)); max-height: min(72vh, 600px); overflow: auto; overscroll-behavior: contain; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px; }
.lang-list a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .94rem; line-height: 1.35; }
.lang-list a small { display: block; color: var(--faint); font-size: .78rem; line-height: 1.3; }
.lang-list a:hover { background: var(--bg-2); }
.lang-list a[aria-current] { background: var(--blue-soft); font-weight: 600; }
/* where it sits: last in the header, after the links, the menu button or Back; beside six
   links it is the globe alone, its language's name in its title */
.head-in .lang-menu { order: 3; margin-left: 4px; }
.head-in:has(.nav) .lang-menu > summary span { display: none; }
.head-in:has(.nav) .lang-menu > summary { padding: 9px; }
/* the room for it, taken from the gaps */
.head-in:has(.lang-menu) { gap: 14px; }
@media (min-width: 881px) { .head-in:has(.lang-menu) .nav a { padding-left: 10px; padding-right: 10px; } }
/* a header that does not fit -- longer words in another language, or the
   menu beside six links -- folds into the menu button, whatever the width
   (momo.js measures it and adds .compact) */
.nav a { white-space: nowrap; }
.head-in.compact .nav-toggle { display: inline-grid; place-items: center; }
.head-in.compact .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); }
.head-in.compact .nav.open { display: flex; }
.head-in.compact .nav a { padding: 12px 12px; font-size: 1rem; }
.head-in.compact .nav .btn { margin: 8px 0 0; justify-content: center; }
@media (max-width: 560px) {
  .lang-menu > summary span { display: none; }
  .lang-list { position: fixed; top: 68px; left: 16px; right: 16px; width: auto; max-height: calc(100vh - 96px); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
.lang-offer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; background: var(--blue-soft); border-bottom: 1px solid var(--line); font-size: .95rem; }
.lang-offer a { font-weight: 600; color: var(--text); }
.lang-offer button { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 8px; border-radius: 6px; }
.lang-offer button:hover { background: var(--bg-2); color: var(--text); }
.legal .box.translated { background: var(--blue-soft); font-size: .95rem; }

/* right to left: what is at the right in English is at the left */
[dir="rtl"] .nav, [dir="rtl"] .head-back, [dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav .btn { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .head-in .lang-menu { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .lang-list { right: auto; left: 0; }
@media (max-width: 560px) { [dir="rtl"] .lang-list { left: 16px; right: 16px; } }
[dir="rtl"] .logo .by { margin-left: 0; margin-right: 2px; }
[dir="rtl"] dialog.viewer button { right: auto; left: -14px; }
@media (max-width: 560px) { [dir="rtl"] dialog.viewer button { left: 0; } }
@media (max-width: 880px) { [dir="rtl"] .nav .btn { margin: 8px 0 0; } }
/* arrows that point onwards */
[dir="rtl"] .head-back { unicode-bidi: plaintext; }
/* formulas, file names and keys read left to right in right-to-left text */
[dir="rtl"] :is(code, kbd) { direction: ltr; unicode-bidi: isolate; }
/* a header with the way back and the Language menu that does not fit on one
   line: the language's name goes first, then the way back (the Scriptorium
   name beside the logo goes back too). momo.js measures it; a phone never has
   the room. */
.head-in.tight .lang-menu > summary span { display: none; }
.head-in.tighter .head-back { display: none; }
.head-in.tighter .lang-menu { margin-left: auto; }
[dir="rtl"] .head-in.tighter .lang-menu { margin-left: 0; margin-right: auto; }
@media (max-width: 560px) {
  .head-in:has(.lang-menu) .head-back { display: none; }
  .head-in:has(.lang-menu):has(.head-back) .lang-menu { margin-left: auto; }
  [dir="rtl"] .head-in:has(.lang-menu):has(.head-back) .lang-menu { margin-left: 0; margin-right: auto; }
}

/* a word wider than the screen (a German compound in a heading) breaks, with a
   hyphen where the language has the rules, rather than widening the page */
h1, h2, h3 { overflow-wrap: break-word; }
html:not([lang="en"]) :is(h1, h2, h3) { hyphens: auto; }

/* writing systems whose letters must not be squeezed together, or that need room above and below */
:is(:lang(ar), :lang(fa), :lang(ur), :lang(ps), :lang(he), :lang(hi), :lang(mr), :lang(ne), :lang(bn), :lang(gu), :lang(pa),
  :lang(ta), :lang(te), :lang(kn), :lang(ml), :lang(si), :lang(th), :lang(km), :lang(my), :lang(am), :lang(ja), :lang(ko), :lang(zh))
  :is(h1, h2, h3, h4, .eyebrow, .feature .who, .facts b, .foot-grid h4, .table th, .logo .prod, .price-card .amount) { letter-spacing: 0; }
:is(:lang(my), :lang(km), :lang(si), :lang(th), :lang(ta), :lang(ml), :lang(kn), :lang(te), :lang(am)) :is(h1, h2, h3) { line-height: 1.4; }
:is(:lang(my), :lang(km), :lang(si), :lang(th)) body { line-height: 1.75; }
