/* Small functional layer on the verified current Watad paper-and-ink design. */
.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--ink-20);
  border-radius: 8px;
  text-decoration: none;
  font: 500 13px var(--head);
  white-space: nowrap;
  flex: none;
  background: var(--paper);
  color: var(--ink);
  transition:
    background-color 160ms ease-out,
    border-color 160ms ease-out;
}
.language-switch:active {
  background: var(--green-06);
  border-color: var(--green);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 300;
  background: var(--paper);
  border: 2px solid var(--green);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.nav {
  gap: 20px;
}
.nav .btn.sm {
  white-space: nowrap;
}
/* Keep the existing stamped launch animation inside its own card, including
   its first oversized keyframe, without clipping the page or its controls. */
.launch {
  overflow: hidden;
}
main section[id] {
  scroll-margin-top: 110px;
}
html[dir='ltr'] {
  --disp: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --head: 'Readex Pro', system-ui, sans-serif;
}
html[dir='ltr'] .wrap::before {
  right: auto;
  left: calc(var(--pad) - 26px);
}
html[dir='ltr'] .sec-num {
  right: auto;
  left: calc(var(--pad) - 39px);
}
html[dir='ltr'] .step .n {
  text-align: left;
}
html[dir='ltr'] svg:has(use[href='#ar']) {
  transform: scaleX(-1);
}
html[dir='ltr'] h1,
html[dir='ltr'] h2 {
  letter-spacing: -0.035em;
}
html[dir='ltr'] .hero h1 {
  max-width: 20ch;
  line-height: 1.2;
}
html[dir='ltr'] .hero h1 em,
html[dir='ltr'] h2 em {
  white-space: normal;
}
html[dir='ltr'] .hero .lede {
  max-width: 58ch;
  line-height: 1.7;
}
html[dir='ltr'] .body-copy li::before {
  right: auto;
  left: 0;
}
html[dir='ltr'] .page-head h1 em {
  white-space: normal;
}
.links a[aria-current='page'] {
  color: var(--green);
  border-color: var(--green);
}
@media (max-width: 1100px) {
  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav > .brand {
    margin-inline-end: auto;
  }
  .links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex-basis: 100%;
    margin: 0;
    order: 5;
    padding-block: 14px 8px;
  }
  .links a {
    display: block;
    min-height: 44px;
    padding: 10px 0;
  }
  .burger {
    display: none;
  }
  .js .burger {
    display: grid;
    min-height: 44px;
    min-width: 44px;
  }
  .js .links {
    display: none;
  }
  .js .nav[data-menu-open='true'] .links {
    display: flex;
  }
}
@media (min-width: 1101px) {
  .burger {
    display: none;
  }
  .links {
    display: flex;
    gap: 18px;
  }
}
@media (max-width: 560px) {
  .nav > .btn.sm {
    display: none;
  }
  .language-switch {
    font-size: 12px;
  }
  .nav {
    padding-block: 12px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .language-switch:hover {
    background: var(--green-06);
    border-color: var(--green);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .language-switch {
    transition: none;
  }
  .rv,
  .io,
  .draw,
  .reg {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
