:root {
  --paper: #f2efe4;
  --paper-deep: #e4dfcf;
  --ink: #11130f;
  --ink-soft: #292d25;
  --muted: #686b62;
  --acid: #c7f04a;
  --acid-dark: #5c7d1d;
  --orange: #ff6847;
  --white: #fbfaf4;
  --line: rgba(17, 19, 15, .24);
  --line-light: rgba(255, 255, 255, .18);
  --display: "Archivo Black", Impact, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper-deep);
  background-image:
    linear-gradient(rgba(17, 19, 15, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 15, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--acid-dark);
  font-weight: 600;
  text-decoration-color: rgba(92, 125, 29, .42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:visited {
  color: var(--acid-dark);
}

a:hover,
a:focus-visible {
  color: var(--orange);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  transform: translateY(-170%);
}

.skip-link:focus {
  color: var(--white);
  transform: translateY(0);
}

.page {
  width: 1180px;
  min-width: 0;
  max-width: calc(100% - 48px);
  margin: 28px auto;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--acid);
}

.masthead {
  min-width: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 12%, rgba(199, 240, 74, .14), transparent 30%),
    var(--ink);
}

.docs-topline {
  min-height: 68px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 22px;
  color: var(--white);
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: -.045em;
  text-decoration: none;
}

.docs-brand:visited {
  color: var(--white);
}

.docs-brand:hover,
.docs-brand:focus-visible {
  color: var(--acid);
}

.docs-brand small {
  padding-left: 11px;
  border-left: 1px solid var(--line-light);
  color: #aeb5a9;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.docs-mascot {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid var(--acid);
  background: var(--acid);
}

.docs-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.docs-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-left: 1px solid var(--line-light);
  color: #aeb5a9;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.docs-credit:visited {
  color: #aeb5a9;
}

.docs-credit b {
  color: var(--orange);
}

.docs-credit:hover,
.docs-credit:focus-visible {
  color: var(--ink);
  background: var(--acid);
}

.masthead-copy {
  padding: clamp(52px, 7vw, 84px) clamp(34px, 7vw, 82px) clamp(46px, 6vw, 70px);
}

.masthead-copy::before {
  display: block;
  margin-bottom: 24px;
  color: var(--acid);
  content: "RTTA / TECHNICAL DOCUMENTATION";
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
}

.masthead h1 {
  max-width: 980px;
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.masthead h1 a,
.masthead h1 a:visited {
  color: inherit;
  text-decoration: none;
}

.masthead h1 a:hover,
.masthead h1 a:focus-visible {
  color: var(--acid);
}

.masthead .tagline {
  margin: 22px 0 0;
  color: #aeb5a9;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.nav {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: stretch;
  padding: 0 34px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ink);
  background: var(--acid);
}

.nav a,
.nav a:visited {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a:first-child {
  border-left: 1px solid var(--ink);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
  background: var(--ink);
}

.nav .language-link {
  margin-left: auto;
  border-left: 1px solid var(--ink);
}

[lang="zh-CN"] body,
[lang="zh-CN"] .content {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--sans);
}

[lang="zh-CN"] .masthead h1,
[lang="zh-CN"] .content h1,
[lang="zh-CN"] .content h2 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--display);
  font-weight: 700;
  letter-spacing: -.035em;
}

.content {
  min-width: 0;
  padding: clamp(54px, 7vw, 82px) clamp(30px, 7vw, 82px) clamp(76px, 9vw, 112px);
  background: var(--paper);
}

.content > :first-child {
  margin-top: 0;
}

.content > p:first-child {
  max-width: 76ch;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.62;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.content h1 {
  margin: 62px 0 18px;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.055em;
}

.content h2 {
  margin: 72px 0 20px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(29px, 4vw, 43px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.05em;
}

.content h2::before {
  display: block;
  margin-bottom: 13px;
  color: var(--orange);
  content: "§";
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
}

.content h3 {
  margin: 40px 0 12px;
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.18;
  letter-spacing: -.035em;
}

.content h4 {
  margin: 30px 0 9px;
  font-size: 18px;
  line-height: 1.25;
}

.content h5,
.content h6 {
  margin: 26px 0 8px;
  font-size: 15px;
  line-height: 1.3;
}

p {
  margin: 0 0 17px;
}

ul,
ol {
  margin: 10px 0 22px;
  padding-left: 25px;
}

li {
  margin: 7px 0;
  padding-left: 3px;
}

li::marker {
  color: var(--acid-dark);
  font-family: var(--mono);
  font-weight: 600;
}

[dir="rtl"] ul,
[dir="rtl"] ol {
  padding-right: 25px;
  padding-left: 0;
}

[dir="rtl"] li {
  padding-right: 3px;
  padding-left: 0;
}

strong,
b {
  color: var(--ink);
}

code {
  padding: 2px 5px;
  border: 1px solid rgba(17, 19, 15, .18);
  color: var(--ink);
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: .9em;
  overflow-wrap: anywhere;
}

pre {
  position: relative;
  margin: 22px 0 28px;
  padding: 27px 28px;
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-left: 7px solid var(--acid);
  color: var(--white);
  background:
    linear-gradient(rgba(199, 240, 74, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 240, 74, .035) 1px, transparent 1px),
    var(--ink);
  background-size: 28px 28px;
  box-shadow: 8px 8px 0 var(--paper-deep);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  tab-size: 4;
}

pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  overflow-wrap: normal;
}

[dir="rtl"] pre,
[dir="rtl"] code {
  direction: ltr;
  unicode-bidi: embed;
  text-align: start;
}

blockquote {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid var(--ink);
  border-left: 8px solid var(--orange);
  color: var(--ink-soft);
  background: var(--paper-deep);
}

blockquote > :last-child {
  margin-bottom: 0;
}

[dir="rtl"] blockquote {
  border-right: 8px solid var(--orange);
  border-left: 1px solid var(--ink);
}

hr {
  margin: 60px 0;
  border: 0;
  border-top: 1px solid var(--ink);
}

.table-scroll {
  max-width: 100%;
  margin: 26px 0 38px;
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--acid);
}

table {
  width: 100%;
  min-width: 640px;
  margin: 0;
  border-collapse: collapse;
  border: 0;
  background: var(--white);
  font-size: 13px;
  line-height: 1.45;
}

th,
td {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

th {
  color: var(--white);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

td {
  font-variant-numeric: tabular-nums;
}

tbody tr:nth-child(even) {
  background: rgba(228, 223, 207, .48);
}

tbody tr:hover {
  background: rgba(199, 240, 74, .22);
}

th:last-child,
td:last-child {
  border-right: 0;
}

tr:last-child td {
  border-bottom: 0;
}

td[align="right"],
th[align="right"] {
  text-align: end;
}

td[align="center"],
th[align="center"] {
  text-align: center;
}

.content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--acid);
}

.math {
  max-width: 100%;
  margin: 24px 0;
  padding: 18px;
  overflow-x: auto;
  border-left: 5px solid var(--acid);
  background: var(--paper-deep);
}

.toc {
  margin: 30px 0 42px;
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
}

.toc::before {
  display: block;
  margin-bottom: 13px;
  content: "ON THIS PAGE";
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
}

.toc ul {
  margin-bottom: 0;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.lang-switch a {
  padding: 6px 9px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
  text-transform: uppercase;
}

.lang-switch a.active,
.lang-switch a:hover {
  color: var(--ink);
  background: var(--acid);
}

.footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 30px;
  border-top: 1px solid var(--line-light);
  color: #aeb5a9;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.footer a,
.footer a:visited {
  color: var(--acid);
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--orange);
}

@media (max-width: 760px) {
  .page {
    max-width: calc(100% - 20px);
    margin: 10px auto;
    box-shadow: 6px 6px 0 var(--acid);
  }

  .docs-topline {
    min-height: 62px;
  }

  .docs-brand {
    padding: 0 14px;
  }

  .docs-brand small,
  .docs-credit {
    display: none;
  }

  .masthead-copy {
    padding: 50px 24px 44px;
  }

  .masthead h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .masthead .tagline {
    line-height: 1.55;
  }

  .nav {
    padding: 0;
  }

  .nav a,
  .nav a:visited {
    min-height: 50px;
    padding: 0 14px;
  }

  .nav a:first-child {
    border-left: 0;
  }

  .nav .language-link {
    margin-left: 0;
  }

  .content {
    padding: 52px 22px 76px;
  }

  .content > p:first-child {
    font-size: 17px;
  }

  .content h2 {
    margin-top: 56px;
  }

  pre {
    margin-right: -8px;
    margin-left: -8px;
    padding: 20px 18px;
    font-size: 12px;
    box-shadow: 5px 5px 0 var(--paper-deep);
  }

  .table-scroll {
    margin-right: -8px;
    margin-left: -8px;
    box-shadow: 5px 5px 0 var(--acid);
  }

  table {
    font-size: 12px;
  }

  th,
  td {
    padding: 10px 11px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  html,
  body {
    background: #fff;
  }

  .page {
    width: auto;
    max-width: none;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .docs-topline,
  .nav,
  .footer {
    display: none;
  }

  .masthead {
    color: #000;
    background: #fff;
  }

  .masthead-copy {
    padding: 20px 0;
  }

  .masthead h1 {
    color: #000;
  }

  .masthead .tagline,
  .masthead-copy::before {
    color: #333;
  }

  .content {
    padding: 20px 0;
  }

  pre,
  .table-scroll {
    box-shadow: none;
  }
}
